mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
clippy::redudant_borrow
This commit is contained in:
parent
d6737e55fb
commit
c9b4ac5be4
114 changed files with 285 additions and 285 deletions
|
@ -142,12 +142,12 @@ fn discover_sysroot_src_dir(
|
|||
log::debug!("RUST_SRC_PATH is set, but is invalid (no core: {:?}), ignoring", core);
|
||||
}
|
||||
|
||||
get_rust_src(&sysroot_path)
|
||||
get_rust_src(sysroot_path)
|
||||
.or_else(|| {
|
||||
let mut rustup = Command::new(toolchain::rustup());
|
||||
rustup.current_dir(current_dir).args(&["component", "add", "rust-src"]);
|
||||
utf8_stdout(rustup).ok()?;
|
||||
get_rust_src(&sysroot_path)
|
||||
get_rust_src(sysroot_path)
|
||||
})
|
||||
.ok_or_else(|| {
|
||||
format_err!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue