Fix lint warnings in tests

main
Laurent Pelecq 2 years ago
parent 1139ff7080
commit c67bab22d9

@ -110,7 +110,7 @@ pub fn run_server(
communication: &'static [(&'static str, &'static str)],
) -> thread::JoinHandle<io::Result<()>> {
thread::spawn(move || -> io::Result<()> {
server.serve(&communication)?;
server.serve(communication)?;
Ok(())
})
}

@ -78,7 +78,7 @@ const SET_CLIENT_COMMUNICATION: (&str, &str) = (
#[test]
#[cfg(not(feature = "async-mio"))]
fn connect_and_quit() -> ClientResult<()> {
const COMMUNICATION: [(&'static str, &'static str); 2] = [
const COMMUNICATION: [(&str, &str); 2] = [
SET_CLIENT_COMMUNICATION,
("QUIT\r\n", "231 HAPPY HACKING\r\n"),
];

Loading…
Cancel
Save