From 722f549ffd4eed4c0b54f77af0e0b17d2b4637e7 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Wed, 1 Mar 2023 23:02:38 +0100 Subject: [PATCH] clippy: allow blocks_in_if_conditions everywhere --- src/inline.rs | 1 - src/lib.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/inline.rs b/src/inline.rs index 6e8f585..8260a8f 100644 --- a/src/inline.rs +++ b/src/inline.rs @@ -810,7 +810,6 @@ impl + Clone> Iterator for Parser { type Item = Event; fn next(&mut self) -> Option { - #[allow(clippy::blocks_in_if_conditions)] while self.events.is_empty() || !self.openers.is_empty() || self // for merge or attributes diff --git a/src/lib.rs b/src/lib.rs index 21999ec..f14f782 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,6 +46,8 @@ //! # } //! ``` +#![allow(clippy::blocks_in_if_conditions)] + use std::fmt; use std::fmt::Write as FmtWrite; use std::io;