From f243da65b499e43939345a5f05336c7fff17bdb9 Mon Sep 17 00:00:00 2001 From: Nils Husung Date: Mon, 18 Nov 2024 19:01:52 +0100 Subject: [PATCH] Fix clippy lints --- crates/oxidd-manager-pointer/src/manager.rs | 2 +- crates/oxidd/tests/util/progress.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxidd-manager-pointer/src/manager.rs b/crates/oxidd-manager-pointer/src/manager.rs index feb5d72..b0a44cf 100644 --- a/crates/oxidd-manager-pointer/src/manager.rs +++ b/crates/oxidd-manager-pointer/src/manager.rs @@ -967,7 +967,7 @@ where /// SAFETY: The returned function must be called on untagged edges /// referencing inner nodes only. #[inline] - unsafe fn eq<'a>(node: &'a N) -> impl Fn(&Edge<'id, N, ET, TAG_BITS>) -> bool + 'a { + unsafe fn eq(node: &N) -> impl Fn(&Edge<'id, N, ET, TAG_BITS>) -> bool + '_ { move |edge| unsafe { edge.inner_node_unchecked() == node } } diff --git a/crates/oxidd/tests/util/progress.rs b/crates/oxidd/tests/util/progress.rs index aa482b5..bb35404 100644 --- a/crates/oxidd/tests/util/progress.rs +++ b/crates/oxidd/tests/util/progress.rs @@ -9,7 +9,7 @@ impl Progress { pub fn new(total: u64) -> Self { assert_ne!(total, 0); let enabled = - std::env::var("OXIDD_TESTING_PROGRESS").map_or(false, |v| !v.is_empty() && v != "0"); + std::env::var("OXIDD_TESTING_PROGRESS").is_ok_and(|v| !v.is_empty() && v != "0"); let mut this = Self { enabled, current: 0,