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:
parent
334406028c
commit
8ec50b72d1
1 changed files with 1 additions and 1 deletions
|
@ -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<_>>())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue