From 29ac04402d53d358a1f6200bea45a301ff05b2d1 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 24 Mar 2015 16:53:34 -0700 Subject: Positive case of `len()` -> `is_empty()` `s/(? Vec { // 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); } -- cgit 1.4.1-3-g733a5