diff --git a/lib/src/request/form/from_form.rs b/lib/src/request/form/from_form.rs index 006d13a3..3582ed11 100644 --- a/lib/src/request/form/from_form.rs +++ b/lib/src/request/form/from_form.rs @@ -18,6 +18,7 @@ use request::FormItems; /// description: String, /// completed: bool /// } +/// # fn main() { } /// ``` /// /// The type can then be parsed from incoming form data via the `data` diff --git a/lib/src/request/form/mod.rs b/lib/src/request/form/mod.rs index e95c5bd0..57ccdf1a 100644 --- a/lib/src/request/form/mod.rs +++ b/lib/src/request/form/mod.rs @@ -76,6 +76,7 @@ use outcome::Outcome::*; /// struct UserInput<'f> { /// value: &'f str /// } +/// # fn main() { } /// ``` /// /// This corresponds to a form with a single field named `value` that should be @@ -115,6 +116,7 @@ use outcome::Outcome::*; /// struct OwnedUserInput { /// value: String /// } +/// # fn main() { } /// ``` /// /// The handler is written similarly: