Skip to content

Commit

Permalink
Auto merge of #16899 - Veykril:discover-fix, r=Veykril
Browse files Browse the repository at this point in the history
fix: Fix project discovery not checking whether the `Cargo.toml` actually exists

Got dropped in #16889, somehow r-a's codebase itself doesn't even run into this so I didn't see it when testing ...
  • Loading branch information
bors committed Mar 20, 2024
2 parents 6fce1d7 + c7f0201 commit 5e276ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/project-model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ impl ProjectManifest {
entities
.filter_map(Result::ok)
.map(|it| it.path().join("Cargo.toml"))
.filter(|it| it.exists())
.map(AbsPathBuf::try_from)
.filter_map(|it| it.ok()?.try_into().ok())
.collect()
Expand Down

0 comments on commit 5e276ae

Please sign in to comment.