From 9bc24e3b12dac34c497f24b00e5452172856f381 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Mon, 25 Jan 2021 02:13:05 -0500 Subject: [PATCH] Remove unnecessary `clone()` (#2970) --- crates/nu-cli/src/env/environment_syncer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu-cli/src/env/environment_syncer.rs b/crates/nu-cli/src/env/environment_syncer.rs index f9136ee7e2..ba0909792e 100644 --- a/crates/nu-cli/src/env/environment_syncer.rs +++ b/crates/nu-cli/src/env/environment_syncer.rs @@ -203,7 +203,7 @@ mod tests { let new_file = dirs.test().join("updated_configuration.toml"); let fake_config = FakeConfig::new(&file); - let mut actual = EnvironmentSyncer::with_config(Box::new(fake_config.clone())); + let mut actual = EnvironmentSyncer::with_config(Box::new(fake_config)); // Here, the environment variables from the current session // are cleared since we will load and set them from the