diff --git a/common/socks5/proxy-helpers/src/connection_controller.rs b/common/socks5/proxy-helpers/src/connection_controller.rs index 71ee35dafd6..933b12b3513 100644 --- a/common/socks5/proxy-helpers/src/connection_controller.rs +++ b/common/socks5/proxy-helpers/src/connection_controller.rs @@ -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!(