Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax-bridge/src/tests.rs')
-rw-r--r--crates/syntax-bridge/src/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/syntax-bridge/src/tests.rs b/crates/syntax-bridge/src/tests.rs
index 8c28e1c5aa..16f2498bf3 100644
--- a/crates/syntax-bridge/src/tests.rs
+++ b/crates/syntax-bridge/src/tests.rs
@@ -36,9 +36,9 @@ fn check_punct_spacing(fixture: &str) {
if let tt::TokenTree::Leaf(Leaf::Punct(Punct {
spacing, span: Span { range, .. }, ..
})) = token_tree
- && let Some(expected) = annotations.remove(range)
+ && let Some(expected) = annotations.remove(&range)
{
- assert_eq!(expected, *spacing);
+ assert_eq!(expected, spacing);
}
cursor.bump();
}