mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Use .into_iter()
method on array to avoid dereference
This commit is contained in:
parent
04f03a360a
commit
16d38ec8b8
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue