Skip to content

Commit 692212b

Browse files
committed
partialeq_to_none
1 parent 7e8568b commit 692212b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ needless_doctest_main = "allow"
179179
new_without_default = "allow"
180180
non_canonical_clone_impl = "allow"
181181
non_canonical_partial_ord_impl = "allow"
182-
partialeq_to_none = "allow"
183182
ptr_arg = "allow"
184183
redundant_closure = "allow"
185184
redundant_pattern_matching = "allow"

crates/hir/src/semantics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ impl<'db> SemanticsImpl<'db> {
12531253
assert!(root_node.parent().is_none());
12541254
let mut cache = self.cache.borrow_mut();
12551255
let prev = cache.insert(root_node, file_id);
1256-
assert!(prev == None || prev == Some(file_id))
1256+
assert!(prev.is_none() || prev == Some(file_id))
12571257
}
12581258

12591259
pub fn assert_contains_node(&self, node: &SyntaxNode) {

0 commit comments

Comments
 (0)