From f1c33afc8e5fcc94be14cea01a1b58a9259349bc Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 5 Mar 2026 23:38:13 +0100 Subject: [PATCH] virtio-devices: vsock: Simplify discarded accept result Do the necessary replacements to satisfy clippy::map_unwrap_or. Signed-off-by: Anatol Belski --- virtio-devices/src/vsock/unix/muxer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio-devices/src/vsock/unix/muxer.rs b/virtio-devices/src/vsock/unix/muxer.rs index edce5b1e0..1a8570b75 100644 --- a/virtio-devices/src/vsock/unix/muxer.rs +++ b/virtio-devices/src/vsock/unix/muxer.rs @@ -409,7 +409,7 @@ impl VsockMuxer { // If we're already maxed-out on connections, we'll just accept and // immediately discard this potentially new one. warn!("vsock: connection limit reached; refusing new host connection"); - self.host_sock.accept().map(|_| 0).unwrap_or(0); + let _ = self.host_sock.accept(); return; } self.host_sock