diff --git a/examples/hello.rs b/examples/hello.rs index 6b7e394..02d65ab 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -5,6 +5,6 @@ use std::io::Write; fn main() { fastcgi::run(|mut req| { write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!") - .unwrap(); + .unwrap_or(()); }); } diff --git a/src/lib.rs b/src/lib.rs index 293523c..a836b42 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,7 +34,7 @@ //! fn main() { //! fastcgi::run(|mut req| { //! write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!") -//! .unwrap(); +//! .unwrap_or(()); //! }); //! }