mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Replace async_trait with AFIT / RPITIT (#2308)
Co-authored-by: Jonas Platte <[email protected]>
This commit is contained in:
@@ -47,7 +47,6 @@ pub trait HandlerCallWithExtractors<T, S>: Sized {
|
||||
/// use axum_extra::handler::HandlerCallWithExtractors;
|
||||
/// use axum::{
|
||||
/// Router,
|
||||
/// async_trait,
|
||||
/// routing::get,
|
||||
/// extract::FromRequestParts,
|
||||
/// };
|
||||
@@ -68,7 +67,6 @@ pub trait HandlerCallWithExtractors<T, S>: Sized {
|
||||
/// // extractors for checking permissions
|
||||
/// struct AdminPermissions {}
|
||||
///
|
||||
/// #[async_trait]
|
||||
/// impl<S> FromRequestParts<S> for AdminPermissions
|
||||
/// where
|
||||
/// S: Send + Sync,
|
||||
@@ -82,7 +80,6 @@ pub trait HandlerCallWithExtractors<T, S>: Sized {
|
||||
///
|
||||
/// struct User {}
|
||||
///
|
||||
/// #[async_trait]
|
||||
/// impl<S> FromRequestParts<S> for User
|
||||
/// where
|
||||
/// S: Send + Sync,
|
||||
|
||||
Reference in New Issue
Block a user