diff --git a/src/types/form.rs b/src/types/form.rs index db6088722..39274bf39 100644 --- a/src/types/form.rs +++ b/src/types/form.rs @@ -229,8 +229,9 @@ impl FormConfig { self } - /// Extract payload config from app data. Check both `T` and `Data`, in that order, and fall - /// back to the default payload config. + /// Extract payload config from app data. + /// + /// Checks both `T` and `Data`, in that order, and falls back to the default payload config. fn from_req(req: &HttpRequest) -> &Self { req.app_data::() .or_else(|| req.app_data::>().map(|d| d.as_ref()))