mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-22 05:35:08 +02:00
rename from_default to extract
This commit is contained in:
@@ -49,7 +49,7 @@ pub trait FromRequest<S>: Sized {
|
||||
/// Convert request to a Self
|
||||
///
|
||||
/// This method uses default extractor configuration
|
||||
fn from_default(req: &HttpRequest<S>) -> Self::Result {
|
||||
fn extract(req: &HttpRequest<S>) -> Self::Result {
|
||||
Self::from_request(req, &Self::Config::default())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user