tower-rs / tower-http

HTTP specific Tower utilities.
675 stars 156 forks source link

not all trait items implemented, missing: `on_failure` #495

Open fate-zx opened 2 months ago

fate-zx commented 2 months ago

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"] }