From 39e0ee094a461732142cc82c551bea5f6d74863a Mon Sep 17 00:00:00 2001 From: Waffle Date: Sun, 4 Jul 2021 00:22:11 +0300 Subject: [PATCH] Ignore buggy nonstandard_macro_braces clippy lint --- src/lib.rs | 2 ++ tests/command.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index a22f0731..2241c4a4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,6 +55,8 @@ // ``` #![cfg_attr(all(docsrs, feature = "nightly"), feature(doc_cfg))] #![allow(clippy::redundant_pattern_matching)] +// https://github.com/rust-lang/rust-clippy/issues/7422 +#![allow(clippy::nonstandard_macro_braces)] pub use dispatching::repls::{ commands_repl, commands_repl_with_listener, dialogues_repl, dialogues_repl_with_listener, repl, diff --git a/tests/command.rs b/tests/command.rs index deed8647..0a114911 100644 --- a/tests/command.rs +++ b/tests/command.rs @@ -1,3 +1,6 @@ +// https://github.com/rust-lang/rust-clippy/issues/7422 +#![allow(clippy::nonstandard_macro_braces)] + #[cfg(feature = "macros")] use teloxide::utils::command::{BotCommand, ParseError};