Fix clippy::clone_double_ref
This commit is contained in:
parent
573a6bb5c9
commit
354db651da
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue