mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -201,7 +201,7 @@ impl Sysroot {
|
|||
e
|
||||
});
|
||||
if let Err(e) =
|
||||
std::fs::remove_file(&format!("{sysroot_src_dir}/sysroot/Cargo.lock"))
|
||||
std::fs::remove_file(format!("{sysroot_src_dir}/sysroot/Cargo.lock"))
|
||||
{
|
||||
tracing::error!(
|
||||
"failed to remove sysroot `{sysroot_src_dir}/sysroot/Cargo.lock`: {}",
|
||||
|
@ -268,11 +268,8 @@ impl Sysroot {
|
|||
res.workspace_members = res
|
||||
.packages
|
||||
.iter()
|
||||
.filter_map(|package| {
|
||||
RELEVANT_SYSROOT_CRATES
|
||||
.contains(&&*package.name)
|
||||
.then(|| package.id.clone())
|
||||
})
|
||||
.filter(|&package| RELEVANT_SYSROOT_CRATES.contains(&&*package.name))
|
||||
.map(|package| package.id.clone())
|
||||
.collect();
|
||||
let cargo_workspace = CargoWorkspace::new(res);
|
||||
Some(Sysroot {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue