From 36459284c7cdbe4133f8fa4cb95562dd5608f02f Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Thu, 8 Oct 2020 20:53:39 +0200 Subject: add eprintln in fmt-like postfix Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- crates/ide/src/completion/complete_postfix/format_like.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates') diff --git a/crates/ide/src/completion/complete_postfix/format_like.rs b/crates/ide/src/completion/complete_postfix/format_like.rs index 81c33bf3a..50d1e5c81 100644 --- a/crates/ide/src/completion/complete_postfix/format_like.rs +++ b/crates/ide/src/completion/complete_postfix/format_like.rs @@ -25,6 +25,7 @@ static KINDS: &[(&str, &str)] = &[ ("fmt", "format!"), ("panic", "panic!"), ("println", "println!"), + ("eprintln", "eprintln!"), ("logd", "log::debug!"), ("logt", "log::trace!"), ("logi", "log::info!"), @@ -259,6 +260,7 @@ mod tests { fn test_into_suggestion() { let test_vector = &[ ("println!", "{}", r#"println!("{}", $1)"#), + ("eprintln!", "{}", r#"eprintln!("{}", $1)"#), ( "log::info!", "{} {expr} {} {2 + 2}", -- cgit v1.2.3