Skip to content

Commit 302b336

Browse files
committed
Don't write out Default manually
1 parent 5eac310 commit 302b336

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

quinn/src/endpoint.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ pub(crate) struct State {
387387
transmit_queue_contents_len: usize,
388388
}
389389

390-
#[derive(Debug)]
390+
#[derive(Debug, Default)]
391391
pub(crate) struct Shared {
392392
incoming: Notify,
393393
idle: Notify,
@@ -691,10 +691,7 @@ impl EndpointRef {
691691
];
692692
let (sender, events) = mpsc::unbounded_channel();
693693
Self(Arc::new(EndpointInner {
694-
shared: Shared {
695-
incoming: Notify::new(),
696-
idle: Notify::new(),
697-
},
694+
shared: Shared::default(),
698695
state: Mutex::new(State {
699696
socket,
700697
inner,

0 commit comments

Comments
 (0)