From 7bc9b0ef22b526abc06fc5c8a968fdd015d19966 Mon Sep 17 00:00:00 2001 From: Laurent Pelecq Date: Sun, 3 Apr 2022 19:22:12 +0200 Subject: [PATCH] Remove unnecessary clone in tests. --- tests/fifo_sync_tests.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/fifo_sync_tests.rs b/tests/fifo_sync_tests.rs index c22a25a..f0bdb5a 100644 --- a/tests/fifo_sync_tests.rs +++ b/tests/fifo_sync_tests.rs @@ -31,11 +31,10 @@ where let socket_dir = tempfile::tempdir()?; let socket_path = socket_dir.path().join("test_client.socket"); assert!(!socket_path.exists()); - let server_path = socket_path.clone(); let mut process_wrapper = std::panic::AssertUnwindSafe(process); - let handle = Server::run(&server_path, communication); + let handle = Server::run(&socket_path, communication); let mut client = ssip_client::fifo::Builder::new() - .path(&server_path) + .path(&socket_path) .build()?; client .set_client_name(ClientName::new("test", "test"))?