mirror of https://github.com/rwf2/Rocket.git
Fix 'TempFile' data guard warning formatting.
This commit is contained in:
parent
f3e08bf3f6
commit
ef303d44f8
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue