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"), ];