From 19617fe550d550b7ae39731a38e2589f3ec27e03 Mon Sep 17 00:00:00 2001 From: raulk Date: Sun, 23 Apr 2023 13:47:13 +0100 Subject: [PATCH] ignore clippy warns happening with rust 1.69.0 --- fvm/src/call_manager/default.rs | 1 + ipld/hamt/tests/hamt_tests.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/fvm/src/call_manager/default.rs b/fvm/src/call_manager/default.rs index dfb35d2375..19abdc07f6 100644 --- a/fvm/src/call_manager/default.rs +++ b/fvm/src/call_manager/default.rs @@ -581,6 +581,7 @@ where /// Helper method to create a placeholder actor due to a send. This method does not execute any /// constructors. + #[allow(clippy::extra_unused_type_parameters)] fn create_placeholder_actor_from_send(&mut self, addr: &Address) -> Result where K: Kernel, diff --git a/ipld/hamt/tests/hamt_tests.rs b/ipld/hamt/tests/hamt_tests.rs index 0670a582c0..135465544a 100644 --- a/ipld/hamt/tests/hamt_tests.rs +++ b/ipld/hamt/tests/hamt_tests.rs @@ -482,6 +482,7 @@ fn for_each_ranged(factory: HamtFactory, stats: Option, mut cids: CidCh if next.is_none() { break; } else { + #[allow(clippy::unused_parens)] assert_eq!(next.clone().unwrap(), kvs[(iterations * PAGE_SIZE)].0); cursor = next; } @@ -528,6 +529,7 @@ fn for_each_ranged(factory: HamtFactory, stats: Option, mut cids: CidCh if next.is_none() { break; } else { + #[allow(clippy::unused_parens)] assert_eq!(next.clone().unwrap(), kvs[(iterations * PAGE_SIZE)].0); cursor = next; }