From c67bab22d986e08f80ec8738aaf0b373bc8d2bfb Mon Sep 17 00:00:00 2001 From: Laurent Pelecq Date: Sat, 16 Apr 2022 20:27:58 +0200 Subject: [PATCH] Fix lint warnings in tests --- tests/server.rs | 2 +- tests/synchronous_tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/server.rs b/tests/server.rs index bd99f22..19a0543 100644 --- a/tests/server.rs +++ b/tests/server.rs @@ -110,7 +110,7 @@ pub fn run_server( communication: &'static [(&'static str, &'static str)], ) -> thread::JoinHandle> { thread::spawn(move || -> io::Result<()> { - server.serve(&communication)?; + server.serve(communication)?; Ok(()) }) } diff --git a/tests/synchronous_tests.rs b/tests/synchronous_tests.rs index afc4f5f..eb43e81 100644 --- a/tests/synchronous_tests.rs +++ b/tests/synchronous_tests.rs @@ -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"), ];