Zebra/zebra-test
Janito Vaqueiro Ferreira Filho 175ac99a42
Improve `MockService` ergonomics for sending error responses (#2810)
* Remove `std::error::Error` constraint

The generic `Error` type parameter doesn't have to implement the
standard `Error` trait, so having that constraint only unnecessarily
limits the types that can be used as an error for the service.

* Implement automatic conversion into `Error` type

Make the usage a little more ergonomic by not having to write manual
error type conversions.

* Add a documentation test for an error response

Show an example that responds to a call to the service with an error.

Co-authored-by: teor <teor@riseup.net>
2021-09-30 02:48:26 +00:00
..
src Improve `MockService` ergonomics for sending error responses (#2810) 2021-09-30 02:48:26 +00:00
tests Rewrite acceptance test matching 2021-06-10 22:46:33 -04:00
Cargo.toml Bump owo-colors from 2.0.0 to 2.1.0 2021-09-23 13:54:27 -04:00