From 16ad086e7f4fb18944cbdd0789f85523cdcbf8ae Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 14 Apr 2016 22:23:20 -0700 Subject: [PATCH] Update mod.rs --- webapp/src/page/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webapp/src/page/mod.rs b/webapp/src/page/mod.rs index 8e097b3a4..3f357f2ee 100644 --- a/webapp/src/page/mod.rs +++ b/webapp/src/page/mod.rs @@ -92,9 +92,7 @@ impl server::Handler for PageHandler { None => (None, Next::end()), Some(f) if self.write_pos == f.content.len() => (None, Next::end()), Some(f) => match encoder.write(&f.content[self.write_pos..]) { - Ok(bytes) => { - (Some(bytes), Next::write()) - }, + Ok(bytes) => (Some(bytes), Next::write()), Err(e) => match e.kind() { ::std::io::ErrorKind::WouldBlock => (None, Next::write()), _ => (None, Next::end())