chore: appease clippy

Fix clippy lints now triggered due to upgraded rust toolchain

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
This commit is contained in:
Patrick Roy
2024-02-21 16:10:45 +00:00
committed by Patrick Roy
parent ca770460cc
commit ef43cef716
2 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ use std::os::unix::net::{UnixListener, UnixStream};
use std::path::Path;
use crate::common::{Body, Version};
pub use crate::common::{ConnectionError, RequestError, ServerError};
pub use crate::common::{ConnectionError, ServerError};
use crate::connection::HttpConnection;
use crate::request::Request;
use crate::response::{Response, StatusCode};
@@ -972,7 +972,7 @@ mod tests {
assert_eq!(server.connections.len(), 10);
// Check that the server detects a connection shutdown.
let sock: &UnixStream = sockets.get(0).unwrap();
let sock: &UnixStream = sockets.first().unwrap();
sock.shutdown(Shutdown::Both).unwrap();
assert!(server.requests().unwrap().is_empty());
// Server should drop a closed connection.