Skip to content

Commit

Permalink
fix from_str serializer (informalsystems#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
noot authored Jul 5, 2023
1 parent 52f3d8d commit 9854a66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion proto/src/serializers/from_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ where
S: Serializer,
T: core::fmt::Display,
{
format!("{value}").serialize(serializer)
value.to_string().serialize(serializer)
}
1 change: 0 additions & 1 deletion rpc/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ impl<R> Wrapper<R> {
}
}

#[cfg(test)]
pub fn new_with_id(id: Id, result: Option<R>, error: Option<ResponseError>) -> Self {
Self {
jsonrpc: Version::current(),
Expand Down

0 comments on commit 9854a66

Please sign in to comment.