From 4bbe3ece51d190f2d403d389d5917628c69f1914 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 2 Jul 2021 21:05:31 -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_backtrace.rs:5:10 | 5 | #[derive(Error, Debug)] | ^^^^^ | = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all` help: consider writing `Error` --> tests/test_backtrace.rs:5:10 | 5 | #[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_lints.rs:13:21 | 13 | #[derive(Debug, Error)] | ^^^^^ | = note: `-D clippy::nonstandard-macro-braces` implied by `-D clippy::all` help: consider writing `Error` --> tests/test_lints.rs:13:21 | 13 | #[derive(Debug, Error)] | ^^^^^ = 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_source.rs:7:10 | 7 | #[derive(Error, Debug)] | ^^^^^ | note: the lint level is defined here --> tests/test_source.rs:1:9 | 1 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[deny(clippy::nonstandard_macro_braces)]` implied by `#[deny(clippy::all)]` help: consider writing `Error` --> tests/test_source.rs:7:10 | 7 | #[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_source.rs:13:10 | 13 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_source.rs:13:10 | 13 | #[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_source.rs:21:10 | 21 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_source.rs:21:10 | 21 | #[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_source.rs:54:18 | 54 | #[derive(Error)] | ^^^^^ ... 64 | / error_from_macro! { 65 | | #[error("Something")] 66 | | Variant(#[from] io::Error) 67 | | } | |_- in this macro invocation | help: consider writing `Error` --> tests/test_source.rs:54:18 | 54 | #[derive(Error)] | ^^^^^ ... 64 | / error_from_macro! { 65 | | #[error("Something")] 66 | | Variant(#[from] io::Error) 67 | | } | |_- in this macro invocation = 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_expr.rs:9:10 | 9 | #[derive(Error, Debug)] | ^^^^^ | note: the lint level is defined here --> tests/test_expr.rs:1:9 | 1 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[deny(clippy::nonstandard_macro_braces)]` implied by `#[deny(clippy::all)]` help: consider writing `Error` --> tests/test_expr.rs:9:10 | 9 | #[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_expr.rs:39:10 | 39 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_expr.rs:39:10 | 39 | #[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_from.rs:6:10 | 6 | #[derive(Error, Debug)] | ^^^^^ | note: the lint level is defined here --> tests/test_from.rs:1:9 | 1 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[deny(clippy::nonstandard_macro_braces)]` implied by `#[deny(clippy::all)]` help: consider writing `Error` --> tests/test_from.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_from.rs:13:10 | 13 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_from.rs:13:10 | 13 | #[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_path.rs:8:10 | 8 | #[derive(Error, Debug)] | ^^^^^ | note: the lint level is defined here --> tests/test_path.rs:1:9 | 1 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[deny(clippy::nonstandard_macro_braces)]` implied by `#[deny(clippy::all)]` help: consider writing `Error` --> tests/test_path.rs:8:10 | 8 | #[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_path.rs:14:10 | 14 | #[derive(Error, Debug, RefCast)] | ^^^^^ | help: consider writing `Error` --> tests/test_path.rs:14:10 | 14 | #[derive(Error, Debug, RefCast)] | ^^^^^ = 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_from.rs:17:10 | 17 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_from.rs:17:10 | 17 | #[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_path.rs:21:10 | 21 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_path.rs:21:10 | 21 | #[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_transparent.rs:14:14 | 14 | #[derive(Error, Debug)] | ^^^^^ | note: the lint level is defined here --> tests/test_transparent.rs:1:9 | 1 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[deny(clippy::nonstandard_macro_braces)]` implied by `#[deny(clippy::all)]` help: consider writing `Error` --> tests/test_transparent.rs:14:14 | 14 | #[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_from.rs:26:10 | 26 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_from.rs:26:10 | 26 | #[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_transparent.rs:34:14 | 34 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_transparent.rs:34:14 | 34 | #[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_transparent.rs:69:14 | 69 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_transparent.rs:69:14 | 69 | #[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_display.rs:12:14 | 12 | #[derive(Error, Debug)] | ^^^^^ | note: the lint level is defined here --> tests/test_display.rs:1:9 | 1 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[deny(clippy::nonstandard_macro_braces)]` implied by `#[deny(clippy::all)]` help: consider writing `Error` --> tests/test_display.rs:12:14 | 12 | #[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_display.rs:24:14 | 24 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:24:14 | 24 | #[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_display.rs:35:14 | 35 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:35:14 | 35 | #[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_display.rs:44:14 | 44 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:44:14 | 44 | #[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_display.rs:53:14 | 53 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:53:14 | 53 | #[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_display.rs:70:14 | 70 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:70:14 | 70 | #[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_display.rs:84:14 | 84 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:84:14 | 84 | #[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_display.rs:98:14 | 98 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:98:14 | 98 | #[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_display.rs:107:14 | 107 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:107:14 | 107 | #[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_display.rs:115:14 | 115 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:115:14 | 115 | #[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_display.rs:129:14 | 129 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:129:14 | 129 | #[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_display.rs:158:14 | 158 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:158:14 | 158 | #[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_display.rs:170:14 | 170 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:170:14 | 170 | #[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_display.rs:184:14 | 184 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:184:14 | 184 | #[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_display.rs:201:14 | 201 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:201:14 | 201 | #[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_display.rs:214:29 | 214 | #[derive(Debug, Error)] | ^^^^^ ... 228 | decl_error!(Repro(u8)); | ----------------------- in this macro invocation | help: consider writing `Error` --> tests/test_display.rs:214:29 | 214 | #[derive(Debug, Error)] | ^^^^^ ... 228 | decl_error!(Repro(u8)); | ----------------------- in this macro invocation = 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_display.rs:220:29 | 220 | #[derive(Debug, Error)] | ^^^^^ ... 228 | decl_error!(Repro(u8)); | ----------------------- in this macro invocation | help: consider writing `Error` --> tests/test_display.rs:220:29 | 220 | #[derive(Debug, Error)] | ^^^^^ ... 228 | decl_error!(Repro(u8)); | ----------------------- in this macro invocation = 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_display.rs:236:14 | 236 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:236:14 | 236 | #[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_display.rs:247:14 | 247 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:247:14 | 247 | #[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_display.rs:258:14 | 258 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:258:14 | 258 | #[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_display.rs:269:14 | 269 | #[derive(Error, Debug)] | ^^^^^ | help: consider writing `Error` --> tests/test_display.rs:269:14 | 269 | #[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_backtrace.rs | 4 ++++ tests/test_display.rs | 4 ++++ tests/test_expr.rs | 6 +++++- tests/test_from.rs | 4 ++++ tests/test_lints.rs | 5 +++++ tests/test_path.rs | 4 ++++ tests/test_source.rs | 4 ++++ tests/test_transparent.rs | 4 ++++ 8 files changed, 34 insertions(+), 1 deletion(-) diff --git a/tests/test_backtrace.rs b/tests/test_backtrace.rs index 09bc13d..c7ba3c4 100644 --- a/tests/test_backtrace.rs +++ b/tests/test_backtrace.rs @@ -1,4 +1,8 @@ #![cfg_attr(thiserror_nightly_testing, feature(backtrace))] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] use thiserror::Error; diff --git a/tests/test_display.rs b/tests/test_display.rs index 949d9ed..8a9ebf7 100644 --- a/tests/test_display.rs +++ b/tests/test_display.rs @@ -1,4 +1,8 @@ #![deny(clippy::all, clippy::pedantic)] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] use std::fmt::Display; use thiserror::Error; diff --git a/tests/test_expr.rs b/tests/test_expr.rs index 87a56cf..50835a5 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -1,5 +1,9 @@ #![deny(clippy::all, clippy::pedantic)] -#![allow(clippy::option_if_let_else)] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, + clippy::option_if_let_else, +)] use std::fmt::Display; use thiserror::Error; diff --git a/tests/test_from.rs b/tests/test_from.rs index e8f0161..b6a3c0c 100644 --- a/tests/test_from.rs +++ b/tests/test_from.rs @@ -1,4 +1,8 @@ #![deny(clippy::all, clippy::pedantic)] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] use std::io; use thiserror::Error; diff --git a/tests/test_lints.rs b/tests/test_lints.rs index 59699a4..457b799 100644 --- a/tests/test_lints.rs +++ b/tests/test_lints.rs @@ -1,3 +1,8 @@ +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] + use thiserror::Error; pub use std::error::Error; diff --git a/tests/test_path.rs b/tests/test_path.rs index a10b1f3..777b5de 100644 --- a/tests/test_path.rs +++ b/tests/test_path.rs @@ -1,4 +1,8 @@ #![deny(clippy::all, clippy::pedantic)] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] use ref_cast::RefCast; use std::fmt::Display; diff --git a/tests/test_source.rs b/tests/test_source.rs index ab16097..c7ddda8 100644 --- a/tests/test_source.rs +++ b/tests/test_source.rs @@ -1,4 +1,8 @@ #![deny(clippy::all, clippy::pedantic)] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] use std::error::Error as StdError; use std::io; diff --git a/tests/test_transparent.rs b/tests/test_transparent.rs index 84d7c91..7d02826 100644 --- a/tests/test_transparent.rs +++ b/tests/test_transparent.rs @@ -1,4 +1,8 @@ #![deny(clippy::all, clippy::pedantic)] +#![allow( + // Clippy bug: https://github.com/rust-lang/rust-clippy/issues/7422 + clippy::nonstandard_macro_braces, +)] use anyhow::anyhow; use std::error::Error as _;