Skip to content

Commit 3584e42

Browse files
committed
Remove unnecessary Arc
1 parent bf6e7f0 commit 3584e42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quinn/src/endpoint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl Drop for EndpointDriver {
372372
#[derive(Debug)]
373373
pub(crate) struct EndpointInner {
374374
socket: UdpSocket,
375-
udp_state: Arc<UdpState>,
375+
udp_state: UdpState,
376376
inner: proto::Endpoint,
377377
outgoing: VecDeque<proto::Transmit>,
378378
incoming: VecDeque<Connecting>,
@@ -592,7 +592,7 @@ impl EndpointRef {
592592
let (dirty_send, dirty) = mpsc::unbounded_channel();
593593
Self(Arc::new(Mutex::new(EndpointInner {
594594
socket,
595-
udp_state: Arc::new(UdpState::new()),
595+
udp_state: UdpState::new(),
596596
inner,
597597
ipv6,
598598
outgoing: VecDeque::new(),

0 commit comments

Comments
 (0)