Update src/extract.rs

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
This commit is contained in:
Arniu Tseng 2021-06-01 22:38:26 +08:00 committed by GitHub
parent 2235c07ea3
commit 8925cd640b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ use crate::{dev::Payload, Error, HttpRequest};
/// [`PayloadConfig`]: crate::web::PayloadConfig
/// [`String`]: FromRequest#impl-FromRequest-for-String
/// [`Bytes`]: crate::web::Bytes#impl-FromRequest
#[doc(alias = "Extractor")]
#[cfg_attr(docsrs, doc(alias = "Extractor"))]
pub trait FromRequest: Sized {
/// The associated error which can be returned.
type Error: Into<Error>;