From 6e131caea81f42da8791dfd744422e3a4eec6dac Mon Sep 17 00:00:00 2001 From: Arseniy Klempner Date: Mon, 17 Aug 2026 14:57:07 -0600 Subject: [PATCH] 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 --- logos-rln-module/rust-lib/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logos-rln-module/rust-lib/src/lib.rs b/logos-rln-module/rust-lib/src/lib.rs index 2becb9e..c0fed36 100644 --- a/logos-rln-module/rust-lib/src/lib.rs +++ b/logos-rln-module/rust-lib/src/lib.rs @@ -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 }