Skip to content

Commit

Permalink
clippy::unwrap-or-default
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Sep 29, 2023
1 parent b0a0103 commit d3462c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/socks5/proxy-helpers/src/connection_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl Controller {
let pending = self
.pending_messages
.entry(hdr.connection_id)
.or_insert_with(Vec::new);
.or_default();
pending.push(message);
} else if !hdr.local_socket_closed {
error!(
Expand Down

0 comments on commit d3462c6

Please sign in to comment.