From 4fa023f4d0528b35d10468dc0d9639206f290fd4 Mon Sep 17 00:00:00 2001 From: Arniu Tseng Date: Tue, 1 Jun 2021 22:36:14 +0800 Subject: [PATCH] Update src/types/form.rs Co-authored-by: Jonas Platte --- src/types/form.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()))