mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
partialeq_to_none
This commit is contained in:
parent
7e8568b293
commit
692212bbdd
2 changed files with 1 additions and 2 deletions
|
@ -1253,7 +1253,7 @@ impl<'db> SemanticsImpl<'db> {
|
|||
assert!(root_node.parent().is_none());
|
||||
let mut cache = self.cache.borrow_mut();
|
||||
let prev = cache.insert(root_node, file_id);
|
||||
assert!(prev == None || prev == Some(file_id))
|
||||
assert!(prev.is_none() || prev == Some(file_id))
|
||||
}
|
||||
|
||||
pub fn assert_contains_node(&self, node: &SyntaxNode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue