Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Dec 18, 2024
1 parent ef526cf commit 2ce93ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra-rpc/src/server/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ where
E: ToString,
{
fn map_error(self, code: impl Into<ErrorCode>) -> Result<T, ErrorObjectOwned> {
self.map_err(|error| ErrorObject::owned(code.into().code(), &error.to_string(), None::<()>))
self.map_err(|error| ErrorObject::owned(code.into().code(), error.to_string(), None::<()>))
}
}

Expand All @@ -108,7 +108,7 @@ impl<T> OkOrError<T> for Option<T> {
) -> Result<T, ErrorObjectOwned> {
self.ok_or(ErrorObject::owned(
code.into().code(),
&message.to_string(),
message.to_string(),
None::<()>,
))
}
Expand Down

0 comments on commit 2ce93ce

Please sign in to comment.