From 9854a66205cdbea720f016061a9d427bd8162b12 Mon Sep 17 00:00:00 2001 From: noot <36753753+noot@users.noreply.github.com> Date: Thu, 6 Jul 2023 00:38:53 +0200 Subject: [PATCH] fix from_str serializer (#1322) --- proto/src/serializers/from_str.rs | 2 +- rpc/src/response.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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(),