Skip to content

Commit

Permalink
Ignore buggy nonstandard_macro_braces clippy lint
Browse files Browse the repository at this point in the history
Clippy bug: rust-lang/rust-clippy#7422

    error: use of irregular braces for `write!` macro
      --> src/error.rs:10:10
       |
    10 | #[derive(Error, Debug)]
       |          ^^^^^
       |
       = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all`
    help: consider writing `Error`
      --> src/error.rs:10:10
       |
    10 | #[derive(Error, Debug)]
       |          ^^^^^
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonstandard_macro_braces
       = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)
  • Loading branch information
dtolnay committed Jul 3, 2021
1 parent fb5cc31 commit 44f0369
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
@@ -1,4 +1,9 @@
#![allow(clippy::let_underscore_drop, clippy::match_bool)]
#![allow(
clippy::let_underscore_drop,
clippy::match_bool,
// Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422
clippy::nonstandard_macro_braces,
)]

mod error;
mod render;
Expand Down

0 comments on commit 44f0369

Please sign in to comment.