Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nhusung committed Nov 18, 2024
1 parent 1f047a4 commit f243da6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/oxidd-manager-pointer/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

Expand Down
2 changes: 1 addition & 1 deletion crates/oxidd/tests/util/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f243da6

Please sign in to comment.