fix clippy warnings

This commit is contained in:
Martin Algesten
2019-06-21 15:09:36 +02:00
parent 819a9d1e0c
commit 41b21d37e4
2 changed files with 2 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ where
handlers.insert(path.to_string(), Box::new(handler)); handlers.insert(path.to_string(), Box::new(handler));
} }
#[allow(clippy::write_with_newline)]
pub fn make_response( pub fn make_response(
status: u16, status: u16,
status_text: &str, status_text: &str,

View File

@@ -255,6 +255,7 @@ fn connect_socket(unit: &Unit, use_pooled: bool) -> Result<(Stream, bool), Error
} }
/// Send request line + headers (all up until the body). /// Send request line + headers (all up until the body).
#[allow(clippy::write_with_newline)]
fn send_prelude(unit: &Unit, stream: &mut Stream, redir: bool) -> IoResult<()> { fn send_prelude(unit: &Unit, stream: &mut Stream, redir: bool) -> IoResult<()> {
// //