From 8ec50b72d19e74c2eb51fb26fc48091b76e2ed77 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sat, 28 Dec 2019 23:13:47 -0600 Subject: [PATCH] refactor/polish ~ fix `cargo clippy` complaints (inefficient `to_string()`) --- src/od/parse_inputs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/od/parse_inputs.rs b/src/od/parse_inputs.rs index d4a3560b0..b777b8e16 100644 --- a/src/od/parse_inputs.rs +++ b/src/od/parse_inputs.rs @@ -14,7 +14,7 @@ impl CommandLineOpts for Matches { self.free.clone() } fn opts_present(&self, opts: &[&str]) -> bool { - self.opts_present(&opts.iter().map(|s| s.to_string()).collect::>()) + self.opts_present(&opts.iter().map(|s| (*s).to_string()).collect::>()) } }