Skip to content

Commit f28e1a1

Browse files
committed
Renames a constant variable name
1 parent 42cffd3 commit f28e1a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/ide-completion/src/completions/postfix/format_like.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static KINDS: &[(&str, &str)] = &[
4040
("logw", "log::warn!"),
4141
("loge", "log::error!"),
4242
];
43-
static HAS_VALUE: &[&str] = &["format"];
43+
static SNIPPET_RETURNS_NON_UNIT: &[&str] = &["format"];
4444

4545
pub(crate) fn add_format_like_completions(
4646
acc: &mut Completions,
@@ -66,7 +66,7 @@ pub(crate) fn add_format_like_completions(
6666

6767
let exprs = with_placeholders(exprs);
6868
for (label, macro_name) in KINDS {
69-
let semi = if HAS_VALUE.contains(label) { "" } else { semi };
69+
let semi = if SNIPPET_RETURNS_NON_UNIT.contains(label) { "" } else { semi };
7070
let snippet = if exprs.is_empty() {
7171
format!(r#"{macro_name}({out}){semi}"#)
7272
} else {

0 commit comments

Comments
 (0)