]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide_completion/src/completions/attribute.rs
Replace some String usages with SmolStr in completions
[rust.git] / crates / ide_completion / src / completions / attribute.rs
index 2482418ae6a1fdff982a606ce28f6a86caa9bb67..e86f38aaa41263f2aec818687054acdeb8a09985 100644 (file)
@@ -104,7 +104,7 @@ fn complete_new_attribute(acc: &mut Completions, ctx: &CompletionContext, attrib
                 let mut item = CompletionItem::new(
                     CompletionItemKind::Attribute,
                     ctx.source_range(),
-                    name.to_string(),
+                    name.to_smol_str(),
                 );
                 if let Some(docs) = mac.docs(ctx.sema.db) {
                     item.documentation(docs);