intellij-rust/intellij-rust

Plugin doesn't check for format! syntax

开放

#7,885 创建于 2021年9月22日

 (1 条评论) (0 个反应) (0 位负责人)Kotlin (376 个派生)batch import
featurehelp wantedsubsystem::highlighting

仓库指标

星标
 (4,526 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Environment

  • IntelliJ Rust plugin version: v0.4.155.4114-212
  • Rust toolchain version: rustc 1.55.0
  • IDE name and version: IDEA 2021.2.2
  • Operating system: Windows 10

Problem description

intellij-rust doesn't check for format! syntax when using macros like println! or format!. It's probably not a big a issue but for people new to rust that are used just putting the variable into the equivalent println! of their language, it can help.

Steps to reproduce

fn main() {
    let hello = String::from("How are you doing today?");
    println!(hello);
}

The plugin doesn't give an error for the println!(hello);

贡献者指南