mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +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]
|
[ROOT_DIR, &home_dir]
|
||||||
.iter()
|
.into_iter()
|
||||||
.map(|dir| String::from(*dir) + COMMON_APP_PATH)
|
.map(|dir| dir.to_string() + COMMON_APP_PATH)
|
||||||
.map(PathBuf::from)
|
.map(PathBuf::from)
|
||||||
.filter(|path| path.exists())
|
.filter(|path| path.exists())
|
||||||
.collect()
|
.collect()
|
||||||
|
|
Loading…
Reference in a new issue