mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Fix clippy::clone_double_ref
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user