Skip to content

Commit 05261f5

Browse files
bors[bot]bnjjj
andauthored
Merge #6176
6176: add eprintln in fmt-like postfix r=SomeoneToIgnore a=bnjjj Co-authored-by: Benjamin Coenen <[email protected]>
2 parents b0eb01e + 3645928 commit 05261f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ide/src/completion/complete_postfix/format_like.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ static KINDS: &[(&str, &str)] = &[
2525
("fmt", "format!"),
2626
("panic", "panic!"),
2727
("println", "println!"),
28+
("eprintln", "eprintln!"),
2829
("logd", "log::debug!"),
2930
("logt", "log::trace!"),
3031
("logi", "log::info!"),
@@ -259,6 +260,7 @@ mod tests {
259260
fn test_into_suggestion() {
260261
let test_vector = &[
261262
("println!", "{}", r#"println!("{}", $1)"#),
263+
("eprintln!", "{}", r#"eprintln!("{}", $1)"#),
262264
(
263265
"log::info!",
264266
"{} {expr} {} {2 + 2}",

0 commit comments

Comments
 (0)