Skip to content
Myr

ci: updates for new clippy (#3882)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Mládek · committed by GitHub · parent c375331 · Browse files · 4 files+6 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+6 added−4 removed

  • tests:+2 added−3 removed
  • other:+4 added−1 removed

4 files+6 added−4 removed

modified:axum/src/handler/mod.rs+1 added
262 unmodified lines
263264mod private {265 // Marker type for `impl<T: IntoResponse> Handler for T`266 #[allow(missing_debug_implementations)]267 #[allow(clippy::empty_enums)] // We cannot use `!` yet in our MSRV.268 pub enum IntoResponseHandler {}269}270271#[diagnostic::do_not_recommend]
177 unmodified lines
modified:axum/src/routing/tests/mod.rs+2 added-3 removed
1209 unmodified lines
1210 }12111212 let events = capture_tracing::<RejectionEvent, _>(|| async {1213 let app = Router::new()1214 .route("/extension", get(|_: Extension<Infallible>| async {}))1214 .route("/extension", get(|_: Extension<()>| async {}))1215 .route("/string", post(|_: String| async {}));12161217 let client = TestClient::new(app);1218
20 unmodified lines
1239 TracingEvent {1240 fields: RejectionEvent {1241 message: "rejecting request".to_owned(),1242 status: 500,1243 body: "Missing request extension: Extension of \1244 type `core::convert::Infallible` was not found. \1243 body: "Missing request extension: Extension of type `()` was not found. \1244 Perhaps you forgot to add it? See `axum::Extension`."1245 .to_owned(),1246 rejection_type: "axum::extract::rejection::MissingExtension".to_owned(),1247 },
131 unmodified lines
modified:axum/src/serve/mod.rs+1 added-1 removed
751 unmodified lines
752 Ok(())753 }754 }755756 #[allow(dead_code, unused_must_use)]756 #[allow(dead_code, unused)]757 async fn if_it_compiles_it_works() {758 #[derive(Clone, Debug)]759 struct UdsConnectInfo;760
514 unmodified lines
modified:axum-core/src/extract/mod.rs+2 added
27 unmodified lines
28/// type used with axum.29pub type Request<T = Body> = http::Request<T>;3031mod private {32 #[allow(clippy::empty_enums)] // We cannot use `!` yet in our MSRV.33 #[derive(Debug, Clone, Copy)]34 pub enum ViaParts {}3536 #[allow(clippy::empty_enums)] // We cannot use `!` yet in our MSRV.37 #[derive(Debug, Clone, Copy)]38 pub enum ViaRequest {}39}40
91 unmodified lines