From 354db651dafd24d93cf0f151d63ad5ecb2e716e2 Mon Sep 17 00:00:00 2001 From: Alan Du Date: Mon, 3 Jun 2019 10:00:51 -0400 Subject: Fix clippy::clone_double_ref --- crates/tools/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/tools') diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index cf189bf1c..8027ff833 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs @@ -84,7 +84,7 @@ fn fix_path_for_mac() -> Result<()> { [ROOT_DIR, &home_dir] .iter() - .map(|dir| String::from(dir.clone()) + COMMON_APP_PATH) + .map(|dir| String::from(*dir) + COMMON_APP_PATH) .map(PathBuf::from) .filter(|path| path.exists()) .collect() -- cgit v1.2.3