mirror of
https://github.com/logos-co/logos-rln-modules.git
synced 2026-08-27 13:01:15 +00:00
fix: clippy unnecessary_map_or in epoch_binding_holds
30d0589 fails cargo clippy --locked --all-targets -- -D warnings on stable 1.97 (unnecessary-map-or); is_none_or is the same predicate. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
f46a12ed90
commit
6e131caea8
@@ -1088,7 +1088,7 @@ fn epoch_binding_holds(
|
||||
now_epoch: u64,
|
||||
) -> bool {
|
||||
epoch_in_window(expected_epoch, now_epoch)
|
||||
&& carried.map_or(true, |e| e == expected_epoch)
|
||||
&& carried.is_none_or(|e| e == expected_epoch)
|
||||
&& proof::expected_external_nullifier(expected_epoch, rln_identifier) == *bound
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user