mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Remove unneeded bounds on S in FromRequest(Parts) implementations
This doesn't actually allow using non-Send or non-Sync state types, but it makes the docs simpler.
This commit is contained in:
@@ -84,8 +84,9 @@ pub trait FromRequestParts<S>: Sized {
|
||||
/// #[async_trait]
|
||||
/// impl<S, B> FromRequest<S, B> for MyExtractor
|
||||
/// where
|
||||
/// // these bounds are required by `async_trait`
|
||||
/// // this bound is required by `async_trait`
|
||||
/// B: Send + 'static,
|
||||
/// // this bound is also required if the state parameter is not discarded with `_: &S`
|
||||
/// S: Send + Sync,
|
||||
/// {
|
||||
/// type Rejection = http::StatusCode;
|
||||
|
||||
Reference in New Issue
Block a user