mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
fix: Don't assert paths being utf8 when filtering them in the watcher
This commit is contained in:
parent
fe28e470cd
commit
ea447062c4
3 changed files with 14 additions and 8 deletions
|
@ -406,7 +406,7 @@ impl CargoWorkspace {
|
|||
pub fn target_by_root(&self, root: &AbsPath) -> Option<Target> {
|
||||
self.packages()
|
||||
.filter(|&pkg| self[pkg].is_member)
|
||||
.find_map(|pkg| self[pkg].targets.iter().find(|&&it| &self[it].root == root))
|
||||
.find_map(|pkg| self[pkg].targets.iter().find(|&&it| self[it].root == root))
|
||||
.copied()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue