1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 15:07:47 +00:00

refactor/polish ~ fix cargo clippy complaints (inefficient to_string())

This commit is contained in:
Roy Ivy III 2019-12-28 23:13:47 -06:00
parent 334406028c
commit 8ec50b72d1

View file

@ -14,7 +14,7 @@ impl CommandLineOpts for Matches {
self.free.clone() self.free.clone()
} }
fn opts_present(&self, opts: &[&str]) -> bool { fn opts_present(&self, opts: &[&str]) -> bool {
self.opts_present(&opts.iter().map(|s| s.to_string()).collect::<Vec<_>>()) self.opts_present(&opts.iter().map(|s| (*s).to_string()).collect::<Vec<_>>())
} }
} }