From 67328baab7d6d31761010f6c495bd6f580539d50 Mon Sep 17 00:00:00 2001 From: Mohd Tarmizi Date: Thu, 6 Aug 2015 23:09:17 +0800 Subject: [PATCH] Better example --- examples/hello.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(()); //! }); //! }