From 5ad27562baf01a2e77d4117e574f67bf5e0ec079 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 6 Oct 2023 17:45:28 +0200 Subject: [PATCH] Silence Clippy warnings --- crates/fj-core/src/algorithms/transform/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/fj-core/src/algorithms/transform/mod.rs b/crates/fj-core/src/algorithms/transform/mod.rs index b13bc49d8..f9230d669 100644 --- a/crates/fj-core/src/algorithms/transform/mod.rs +++ b/crates/fj-core/src/algorithms/transform/mod.rs @@ -100,6 +100,9 @@ pub struct TransformCache(TypeMap); impl TransformCache { fn get(&mut self, key: &Handle) -> Option<&Handle> { + // Silencing Clippy warning due to false positive in Rust 1.73.0. See: + // https://github.com/rust-lang/rust-clippy/issues/11390#issuecomment-1750951533 + #[allow(clippy::unwrap_or_default)] let map = self .0 .entry::>>() @@ -109,6 +112,9 @@ impl TransformCache { } fn insert(&mut self, key: Handle, value: Handle) { + // Silencing Clippy warning due to false positive in Rust 1.73.0. See: + // https://github.com/rust-lang/rust-clippy/issues/11390#issuecomment-1750951533 + #[allow(clippy::unwrap_or_default)] let map = self .0 .entry::>>()