Skip to content

Commit

Permalink
chore: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Feb 5, 2024
1 parent 0dd5b8a commit 856d5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/utils/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl AppError {
}

#[must_use]
pub fn anyhow(error: anyhow::Error) -> Self {
pub fn anyhow(error: &anyhow::Error) -> Self {
Self::new(error.to_string(), None, None)
}
}
Expand All @@ -74,6 +74,6 @@ where
T: Into<anyhow::Error>,
{
fn from(t: T) -> Self {
Self::anyhow(t.into())
Self::anyhow(&t.into())
}
}

0 comments on commit 856d5e1

Please sign in to comment.