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:
Arseniy Klempner
2026-08-19 10:29:17 -06:00
co-authored by Claude Fable 5
parent f46a12ed90
commit 6e131caea8
+1 -1
View File
@@ -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
}