From 7b7b88705b7b49b37d1dd433157c9727674fe6b8 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Sat, 2 Sep 2023 12:44:47 -0400 Subject: [PATCH] make clippy happy - implicit_clone warning: implicitly cloning a `Vec` by calling `to_owned` on its dereferenced type --> src/cmd/excel.rs:262:21 | 262 | let sheet_vec = sheet_names.to_owned(); | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `sheet_names.clone()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone = note: `-W clippy::implicit-clone` implied by `-W clippy::pedantic` [skip ci] --- src/cmd/excel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/excel.rs b/src/cmd/excel.rs index 20bb0e0cd..0e1109b3c 100644 --- a/src/cmd/excel.rs +++ b/src/cmd/excel.rs @@ -259,7 +259,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> { } let num_sheets = sheet_names.len(); #[allow(clippy::redundant_clone)] - let sheet_vec = sheet_names.to_owned(); + let sheet_vec = sheet_names.clone(); let mut wtr = Config::new(&args.flag_output) .flexible(args.flag_flexible)