From 1c40762cf58d881b7a6c35447e1311f8859e14b6 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 25 Jun 2025 13:04:37 +0200 Subject: [PATCH] chore: clippy --- src/stremio_app/named_pipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stremio_app/named_pipe.rs b/src/stremio_app/named_pipe.rs index 3812edd..af483ab 100644 --- a/src/stremio_app/named_pipe.rs +++ b/src/stremio_app/named_pipe.rs @@ -133,7 +133,7 @@ pub struct PipeServer { fn to_u16s>(s: S) -> io::Result> { let mut maybe_result: Vec = s.as_ref().encode_wide().collect(); - if maybe_result.iter().any(|&u| u == 0) { + if maybe_result.contains(&0) { return Err(io::Error::new( io::ErrorKind::InvalidInput, "strings passed to WinAPI cannot contain NULs",