thomaseizinger / rust-jsonrpc-client

A macro-driven JSON-RPC client for Rust.
https://docs.rs/jsonrpc_client
4 stars 6 forks source link

Omit empty params in v2 request object #46

Closed chrisabruce closed 3 years ago

chrisabruce commented 3 years ago

This pull request removes empty params from v2 request objects if they are empty.

Resolves #45

chrisabruce commented 3 years ago

@thomaseizinger think this is ready now?

thomaseizinger commented 3 years ago

@thomaseizinger think this is ready now?

Yes. It does seem that you merged instead of rebased so the diff includes my commits as well but that is not so much of a big deal :)