Use dyn for error return type
Use dyn for error return type

Clippy emits:

  warning: trait objects without an explicit `dyn` are deprecated

Use `dyn` for the error return type.

apoelstra/rust-jsonrpc,apoelstra/rust-jsonrpc