From 5f0f8a78d345f5e1c8ed9ed5a593c061d8987d2e Mon Sep 17 00:00:00 2001 From: Moudy Date: Tue, 31 Mar 2026 15:34:52 +0200 Subject: [PATCH] fix: use infallible .into() instead of .try_into() for ValidityWindow conversion Clippy flagged unnecessary fallible conversion since RangeFrom to ValidityWindow cannot fail. --- nssa/core/src/circuit_io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nssa/core/src/circuit_io.rs b/nssa/core/src/circuit_io.rs index 12fd1277..998f6d71 100644 --- a/nssa/core/src/circuit_io.rs +++ b/nssa/core/src/circuit_io.rs @@ -103,7 +103,7 @@ mod tests { ), [0xab; 32], )], - block_validity_window: (1..).try_into(), + block_validity_window: (1..).into(), timestamp_validity_window: TimestampValidityWindow::new_unbounded(), }; let bytes = output.to_bytes();