Skip to content

Commit

Permalink
fix serialization of methods::chunk payload
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Nov 11, 2021
1 parent 471a53b commit f40ad74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ impl_method! {
type Error = RpcChunkError;

fn params(&self) -> Result<serde_json::Value, io::Error> {
Ok(json!([self]))
Ok(json!(self))
}
});
}
Expand Down

0 comments on commit f40ad74

Please sign in to comment.