mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 14:43:58 +00:00
fix: fix ambigious package name in flycheck
This commit is contained in:
parent
94b526fc86
commit
99af938dea
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ fn run_flycheck(state: &mut GlobalState, vfs_path: VfsPath) -> bool {
|
||||||
.targets
|
.targets
|
||||||
.iter()
|
.iter()
|
||||||
.any(|&it| crate_root_paths.contains(&cargo[it].root.as_path()));
|
.any(|&it| crate_root_paths.contains(&cargo[it].root.as_path()));
|
||||||
has_target_with_root.then(|| cargo[pkg].name.clone())
|
has_target_with_root.then(|| cargo.package_flag(&cargo[pkg]))
|
||||||
}),
|
}),
|
||||||
project_model::ProjectWorkspaceKind::Json(project) => {
|
project_model::ProjectWorkspaceKind::Json(project) => {
|
||||||
if !project.crates().any(|(_, krate)| {
|
if !project.crates().any(|(_, krate)| {
|
||||||
|
|
Loading…
Reference in a new issue