Fix 'TempFile' data guard warning formatting.

This commit is contained in:
Sergio Benitez 2021-06-26 12:03:52 -07:00
parent f3e08bf3f6
commit ef303d44f8
1 changed files with 2 additions and 2 deletions

View File

@ -495,8 +495,8 @@ impl<'r> FromData<'r> for Capped<TempFile<'_>> {
let has_form = |ty: &ContentType| ty.is_form_data() || ty.is_form();
if req.content_type().map_or(false, has_form) {
let (tf, form) = (Paint::white("TempFile<'_>"), Paint::white("Form<TempFile<'_>>"));
warn!("Request contains a form that will not be processed.");
info_!("Bare `{}` data guard writes raw, unprocessed stream to disk.", tf);
warn_!("Request contains a form that will not be processed.");
info_!("Bare `{}` data guard writes raw, unprocessed streams to disk.", tf);
info_!("Did you mean to use `{}` instead?", form);
}