From 16d38ec8b8c35873f0d6838b4202a79e9273d8ab Mon Sep 17 00:00:00 2001 From: Aramis Razzaghipour Date: Wed, 3 Nov 2021 16:13:47 +1100 Subject: [PATCH] Use `.into_iter()` method on array to avoid dereference --- xtask/src/install.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtask/src/install.rs b/xtask/src/install.rs index 6bae5123a6..58f386be85 100644 --- a/xtask/src/install.rs +++ b/xtask/src/install.rs @@ -50,8 +50,8 @@ fn fix_path_for_mac() -> Result<()> { }; [ROOT_DIR, &home_dir] - .iter() - .map(|dir| String::from(*dir) + COMMON_APP_PATH) + .into_iter() + .map(|dir| dir.to_string() + COMMON_APP_PATH) .map(PathBuf::from) .filter(|path| path.exists()) .collect()