Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/attr.rs')
| -rw-r--r-- | crates/hir_def/src/attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index 3bf7a33030..4f68c91cc9 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs @@ -796,7 +796,7 @@ impl<'a> AttrQuery<'a> { let key = self.key; self.attrs .iter() - .filter(move |attr| attr.path.as_ident().map_or(false, |s| s.to_string() == key)) + .filter(move |attr| attr.path.as_ident().map_or(false, |s| s.to_smol_str() == key)) } } |