diff --git a/src/test/mod.rs b/src/test/mod.rs index 38c59eb..bc51390 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -30,6 +30,7 @@ where handlers.insert(path.to_string(), Box::new(handler)); } +#[allow(clippy::write_with_newline)] pub fn make_response( status: u16, status_text: &str, diff --git a/src/unit.rs b/src/unit.rs index 8c980d6..a4984e5 100644 --- a/src/unit.rs +++ b/src/unit.rs @@ -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). +#[allow(clippy::write_with_newline)] fn send_prelude(unit: &Unit, stream: &mut Stream, redir: bool) -> IoResult<()> { //