about summary refs log tree commit diff
path: root/src/libstd/sys/windows/process2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sys/windows/process2.rs')
-rw-r--r--src/libstd/sys/windows/process2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/process2.rs b/src/libstd/sys/windows/process2.rs
index 74953921921..3d5c9867a6f 100644
--- a/src/libstd/sys/windows/process2.rs
+++ b/src/libstd/sys/windows/process2.rs
@@ -381,7 +381,7 @@ fn make_command_line(prog: &OsStr, args: &[OsString]) -> Vec<u16> {
         // it will be dropped entirely when parsed on the other end.
         let arg_bytes = &arg.as_inner().inner.as_inner();
         let quote = arg_bytes.iter().any(|c| *c == b' ' || *c == b'\t')
-            || arg_bytes.len() == 0;
+            || arg_bytes.is_empty();
         if quote {
             cmd.push('"' as u16);
         }