Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/syntax_helpers/node_ext.rs')
-rw-r--r--crates/ide-db/src/syntax_helpers/node_ext.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ide-db/src/syntax_helpers/node_ext.rs b/crates/ide-db/src/syntax_helpers/node_ext.rs
index e30b21c139..11ba815dab 100644
--- a/crates/ide-db/src/syntax_helpers/node_ext.rs
+++ b/crates/ide-db/src/syntax_helpers/node_ext.rs
@@ -216,7 +216,12 @@ pub fn walk_ty(ty: &ast::Type, cb: &mut dyn FnMut(ast::Type) -> bool) {
preorder.skip_subtree();
cb(ty);
}
- Some(ty) => {
+ Some(ty) =>
+ {
+ #[expect(
+ clippy::collapsible_match,
+ reason = "it won't compile due to exhaustiveness"
+ )]
if cb(ty) {
preorder.skip_subtree();
}