diff --git a/zebra-rpc/src/server/error.rs b/zebra-rpc/src/server/error.rs index e923ca1a6f8..943d820402c 100644 --- a/zebra-rpc/src/server/error.rs +++ b/zebra-rpc/src/server/error.rs @@ -96,7 +96,7 @@ where E: ToString, { fn map_error(self, code: impl Into) -> Result { - 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::<()>)) } } @@ -108,7 +108,7 @@ impl OkOrError for Option { ) -> Result { self.ok_or(ErrorObject::owned( code.into().code(), - &message.to_string(), + message.to_string(), None::<()>, )) }