mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Replace async_trait with AFIT / RPITIT (#2308)
Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use axum::extract::{FromRef, FromRequest, Request};
|
||||
use axum_macros::debug_handler;
|
||||
use axum::extract::{Request, FromRef, FromRequest};
|
||||
use axum::async_trait;
|
||||
|
||||
#[debug_handler(state = AppState)]
|
||||
async fn handler(_: A) {}
|
||||
@@ -10,7 +9,6 @@ struct AppState;
|
||||
|
||||
struct A;
|
||||
|
||||
#[async_trait]
|
||||
impl<S> FromRequest<S> for A
|
||||
where
|
||||
S: Send + Sync,
|
||||
|
||||
Reference in New Issue
Block a user