diff --git a/lib/src/request/form/from_form.rs b/lib/src/request/form/from_form.rs index 864d55db..29fc3972 100644 --- a/lib/src/request/form/from_form.rs +++ b/lib/src/request/form/from_form.rs @@ -117,9 +117,9 @@ pub trait FromForm<'f>: Sized { /// This implementation should only be used during debugging! impl<'f> FromForm<'f> for &'f str { - type Error = (); + type Error = !; - fn from_form(items: &mut FormItems<'f>, _: bool) -> Result { + fn from_form(items: &mut FormItems<'f>, _: bool) -> Result { items.mark_complete(); Ok(items.inner_str()) }