From 48fcc4e8788af311d600b05eaaa0af971f4bac1b Mon Sep 17 00:00:00 2001 From: Jorge Leitao Date: Mon, 26 Sep 2022 06:39:33 +0200 Subject: [PATCH] Fixed clippy for 1.60 (#1259) --- src/lib.rs | 2 ++ tests/it/main.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 16bd56ed04c..e479cb7d08b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,8 @@ #![allow(unused_unsafe)] // #![allow(clippy::len_without_is_empty)] +// this landed on 1.60. Let's not force everyone to bump just yet +#![allow(clippy::unnecessary_lazy_evaluations)] // Trait objects must be returned as a &Box so that they can be cloned #![allow(clippy::borrowed_box)] // Allow type complexity warning to avoid API break. diff --git a/tests/it/main.rs b/tests/it/main.rs index 4c9448ea81a..436969f47b4 100644 --- a/tests/it/main.rs +++ b/tests/it/main.rs @@ -1,3 +1,6 @@ +// this landed on 1.60. Let's not force everyone to bump just yet +#![allow(clippy::unnecessary_lazy_evaluations)] + mod array; mod bitmap; mod buffer;