tower-rs / tower-http

HTTP specific Tower utilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not all trait items implemented, missing: `on_failure`

fate-zx opened this issue · comments

error[E0046]: not all trait items implemented, missing: on_failure
--> .cargo\registry\src\index.crates.io-6f17d22bba15001f\tower-http-0.5.2\src\trace\on_response.rs:35:1
|
27 | / fn on_failure(
28 | | &mut self,
29 | | error: &hyper::Error,
30 | | latency: std::time::Duration,
31 | | span: &Span,
32 | | );
| |______- on_failure from trait
...
35 | impl OnResponse for () {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing on_failure in implementation

tower = { version = "0.4", features = ["util"] }
tower-http = { version = "0.5.2", features = ["trace"] }