diff --git a/proto/src/serializers/from_str.rs b/proto/src/serializers/from_str.rs index c17625246..1880c2284 100644 --- a/proto/src/serializers/from_str.rs +++ b/proto/src/serializers/from_str.rs @@ -23,5 +23,5 @@ where S: Serializer, T: core::fmt::Display, { - format!("{value}").serialize(serializer) + value.to_string().serialize(serializer) } diff --git a/rpc/src/response.rs b/rpc/src/response.rs index 09d234615..df6f85b0d 100644 --- a/rpc/src/response.rs +++ b/rpc/src/response.rs @@ -69,7 +69,6 @@ impl Wrapper { } } - #[cfg(test)] pub fn new_with_id(id: Id, result: Option, error: Option) -> Self { Self { jsonrpc: Version::current(),