Skip to content

Commit ed64761

Browse files
committed
Fix clippy warnings
1 parent 7c8b019 commit ed64761

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

dc/s2n-quic-dc/src/stream/tests/shared_cache.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ use crate::{
1111
testing::{init_tracing, query_event, server_name, NoopSubscriber, TestTlsProvider},
1212
};
1313
use s2n_quic_core::time::StdClock;
14-
use std::{num::NonZeroUsize, path::PathBuf, time::Duration};
14+
use std::{
15+
num::NonZeroUsize,
16+
path::{Path, PathBuf},
17+
time::Duration,
18+
};
1519
use tracing::info;
1620

1721
#[tokio::test]
@@ -99,7 +103,7 @@ async fn setup_servers() {
99103
}
100104

101105
async fn test_connection(
102-
unix_socket_path: &PathBuf,
106+
unix_socket_path: &Path,
103107
handshake_server: &ServerProvider,
104108
test_event_subscriber: NoopSubscriber,
105109
stream_client: &ClientTokio<ClientProvider, NoopSubscriber>,
@@ -109,7 +113,7 @@ async fn test_connection(
109113
.with_protocol(Protocol::Tcp)
110114
.with_udp(false)
111115
.with_workers(NonZeroUsize::new(1).unwrap())
112-
.with_socket_path(&unix_socket_path)
116+
.with_socket_path(unix_socket_path)
113117
.build(handshake_server.clone(), test_event_subscriber.clone())
114118
.unwrap();
115119

@@ -123,7 +127,7 @@ async fn test_connection(
123127
.with_protocol(Protocol::Tcp)
124128
.with_udp(false)
125129
.with_workers(NonZeroUsize::new(1).unwrap())
126-
.with_socket_path(&unix_socket_path)
130+
.with_socket_path(unix_socket_path)
127131
.build(test_event_subscriber.clone())
128132
.unwrap();
129133
info!(

0 commit comments

Comments
 (0)