Skip to content

Commit 3645928

Browse files
committed
add eprintln in fmt-like postfix
Signed-off-by: Benjamin Coenen <[email protected]>
1 parent 636b413 commit 3645928

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)