Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/attribute/repr.rs')
-rw-r--r--crates/ide-completion/src/completions/attribute/repr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-completion/src/completions/attribute/repr.rs b/crates/ide-completion/src/completions/attribute/repr.rs
index 63cddb365e..73ba847e7e 100644
--- a/crates/ide-completion/src/completions/attribute/repr.rs
+++ b/crates/ide-completion/src/completions/attribute/repr.rs
@@ -23,7 +23,7 @@ pub(super) fn complete_repr(
})
.any(|it| {
let text = it.text();
- lookup.unwrap_or(label) == text || collides.contains(&text.as_str())
+ lookup.unwrap_or(label) == text || collides.contains(&text)
});
if repr_already_annotated {
continue;