Re-format trybuild tests (#3049)

This commit is contained in:
Jonas Platte
2024-11-26 18:04:01 +00:00
committed by GitHub
parent f1c79a459b
commit 9ddb25f089
47 changed files with 97 additions and 154 deletions
+6 -4
View File
@@ -1,4 +1,8 @@
use axum::{Router, routing::get, extract::{State, FromRef}};
use axum::{
extract::{FromRef, State},
routing::get,
Router,
};
// This will implement `FromRef` for each field in the struct.
#[derive(Clone, FromRef)]
@@ -14,7 +18,5 @@ fn main() {
auth_token: Default::default(),
};
let _: axum::Router = Router::new()
.route("/", get(handler))
.with_state(state);
let _: axum::Router = Router::new().route("/", get(handler)).with_state(state);
}