mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-28 02:29:44 +00:00
minor: New clippy lints
This commit is contained in:
parent
6725e046df
commit
4b6007115a
92 changed files with 180 additions and 201 deletions
|
|
@ -116,7 +116,6 @@ fn lookup_in_path(exec: &str) -> Option<Utf8PathBuf> {
|
|||
let paths = env::var_os("PATH").unwrap_or_default();
|
||||
env::split_paths(&paths)
|
||||
.map(|path| path.join(exec))
|
||||
.map(PathBuf::from)
|
||||
.map(Utf8PathBuf::try_from)
|
||||
.filter_map(Result::ok)
|
||||
.find_map(probe_for_binary)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue