From 6632b23f50429b712759805cf13bff5b68912c76 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 2 Jul 2021 21:01:42 -0700 Subject: [PATCH] Ignore buggy nonstandard_macro_braces clippy lint Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 error: use of irregular braces for `write!` macro --> tests/test_boxed.rs:6:10 | 6 | #[derive(Error, Debug)] | ^^^^^ | = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all` help: consider writing `Error` --> tests/test_boxed.rs:6:10 | 6 | #[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) error: use of irregular braces for `write!` macro --> tests/test_context.rs:36:10 | 36 | #[derive(Error, Debug)] | ^^^^^ | = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all` help: consider writing `Error` --> tests/test_context.rs:36:10 | 36 | #[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) --- tests/test_boxed.rs | 5 +++++ tests/test_context.rs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/test_boxed.rs b/tests/test_boxed.rs index 38a568f..fb1fb13 100644 --- a/tests/test_boxed.rs +++ b/tests/test_boxed.rs @@ -1,3 +1,8 @@ +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] + use anyhow::anyhow; use std::error::Error as StdError; use std::io; diff --git a/tests/test_context.rs b/tests/test_context.rs index 44c1c70..9d44c3e 100644 --- a/tests/test_context.rs +++ b/tests/test_context.rs @@ -1,3 +1,8 @@ +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] + mod drop; use crate::drop::{DetectDrop, Flag};