Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/macro_.rs')
-rw-r--r--crates/ide-completion/src/render/macro_.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-completion/src/render/macro_.rs b/crates/ide-completion/src/render/macro_.rs
index 68d175c2bd..915a245ab6 100644
--- a/crates/ide-completion/src/render/macro_.rs
+++ b/crates/ide-completion/src/render/macro_.rs
@@ -2,7 +2,7 @@
use hir::HirDisplay;
use ide_db::{documentation::Documentation, SymbolKind};
-use syntax::SmolStr;
+use syntax::{format_smolstr, SmolStr};
use crate::{
context::{PathCompletionCtx, PathKind, PatternContext},
@@ -94,7 +94,7 @@ fn label(
) -> SmolStr {
if needs_bang {
if ctx.snippet_cap().is_some() {
- SmolStr::from_iter([&*name, "!", bra, "…", ket])
+ format_smolstr!("{name}!{bra}…{ket}",)
} else {
banged_name(name)
}