diff --git a/axum-core/src/ext_traits/mod.rs b/axum-core/src/ext_traits/mod.rs index 02595fbe..4c98b143 100644 --- a/axum-core/src/ext_traits/mod.rs +++ b/axum-core/src/ext_traits/mod.rs @@ -30,6 +30,7 @@ mod tests { } // some extractor that requires the state, such as `SignedCookieJar` + #[allow(dead_code)] pub(crate) struct RequiresState(pub(crate) String); #[async_trait] diff --git a/axum-core/src/lib.rs b/axum-core/src/lib.rs index 994b522c..cd1dc2ee 100644 --- a/axum-core/src/lib.rs +++ b/axum-core/src/lib.rs @@ -21,7 +21,6 @@ clippy::needless_borrow, clippy::match_wildcard_for_single_variants, clippy::if_let_mutex, - clippy::mismatched_target_os, clippy::await_holding_lock, clippy::match_on_vec_items, clippy::imprecise_flops, diff --git a/axum-extra/Cargo.toml b/axum-extra/Cargo.toml index 4ba0732a..e091cd9c 100644 --- a/axum-extra/Cargo.toml +++ b/axum-extra/Cargo.toml @@ -49,7 +49,7 @@ http-body-util = "0.1.0" mime = "0.3" pin-project-lite = "0.2" serde = "1.0" -tower = { version = "0.4", default_features = false, features = ["util"] } +tower = { version = "0.4", default-features = false, features = ["util"] } tower-layer = "0.3" tower-service = "0.3" diff --git a/axum-extra/src/lib.rs b/axum-extra/src/lib.rs index 2ddda783..02dd6e69 100644 --- a/axum-extra/src/lib.rs +++ b/axum-extra/src/lib.rs @@ -40,7 +40,6 @@ clippy::needless_borrow, clippy::match_wildcard_for_single_variants, clippy::if_let_mutex, - clippy::mismatched_target_os, clippy::await_holding_lock, clippy::match_on_vec_items, clippy::imprecise_flops, diff --git a/axum-macros/src/lib.rs b/axum-macros/src/lib.rs index 0d5836c6..f1de3ce8 100644 --- a/axum-macros/src/lib.rs +++ b/axum-macros/src/lib.rs @@ -15,7 +15,6 @@ clippy::needless_borrow, clippy::match_wildcard_for_single_variants, clippy::if_let_mutex, - clippy::mismatched_target_os, clippy::await_holding_lock, clippy::match_on_vec_items, clippy::imprecise_flops, diff --git a/axum/src/lib.rs b/axum/src/lib.rs index fcd78a8b..94174229 100644 --- a/axum/src/lib.rs +++ b/axum/src/lib.rs @@ -388,7 +388,6 @@ clippy::needless_borrow, clippy::match_wildcard_for_single_variants, clippy::if_let_mutex, - clippy::mismatched_target_os, clippy::await_holding_lock, clippy::match_on_vec_items, clippy::imprecise_flops, diff --git a/axum/src/routing/tests/handle_error.rs b/axum/src/routing/tests/handle_error.rs index e5d575e9..a2fd2e68 100644 --- a/axum/src/routing/tests/handle_error.rs +++ b/axum/src/routing/tests/handle_error.rs @@ -12,23 +12,6 @@ fn timeout() -> TimeoutLayer { TimeoutLayer::new(Duration::from_millis(10)) } -#[derive(Clone)] -struct Svc; - -impl Service for Svc { - type Response = Response; - type Error = hyper::Error; - type Future = Ready>; - - fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll> { - Poll::Ready(Ok(())) - } - - fn call(&mut self, _req: R) -> Self::Future { - ready(Ok(Response::new(Body::empty()))) - } -} - #[crate::test] async fn handler() { let app = Router::new().route( diff --git a/examples/sse/src/main.rs b/examples/sse/src/main.rs index 53f7dc49..73e7511e 100644 --- a/examples/sse/src/main.rs +++ b/examples/sse/src/main.rs @@ -96,7 +96,7 @@ mod tests { let listening_url = spawn_app("127.0.0.1").await; let mut event_stream = reqwest::Client::new() - .get(&format!("{}/sse", listening_url)) + .get(format!("{}/sse", listening_url)) .header("User-Agent", "integration_test") .send() .await