summaryrefslogtreecommitdiffstats
path: root/tokio/tests/uds_stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/tests/uds_stream.rs')
-rw-r--r--tokio/tests/uds_stream.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/tests/uds_stream.rs b/tokio/tests/uds_stream.rs
index 29f118a2..cd557e54 100644
--- a/tokio/tests/uds_stream.rs
+++ b/tokio/tests/uds_stream.rs
@@ -15,7 +15,7 @@ async fn accept_read_write() -> std::io::Result<()> {
.unwrap();
let sock_path = dir.path().join("connect.sock");
- let mut listener = UnixListener::bind(&sock_path)?;
+ let listener = UnixListener::bind(&sock_path)?;
let accept = listener.accept();
let connect = UnixStream::connect(&sock_path);
@@ -42,7 +42,7 @@ async fn shutdown() -> std::io::Result<()> {
.unwrap();
let sock_path = dir.path().join("connect.sock");
- let mut listener = UnixListener::bind(&sock_path)?;
+ let listener = UnixListener::bind(&sock_path)?;
let accept = listener.accept();
let connect = UnixStream::connect(&sock_path);