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)], communication: &'static [(&'static str, &'static str)],
) -> thread::JoinHandle<io::Result<()>> { ) -> thread::JoinHandle<io::Result<()>> {
thread::spawn(move || -> io::Result<()> { thread::spawn(move || -> io::Result<()> {
server.serve(&communication)?; server.serve(communication)?;
Ok(()) Ok(())
}) })
} }

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

Loading…
Cancel
Save