lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit e3152c954f6afc1c7712dd7fa25b8c60e214bb9a
parent ddd3bfadb7b4a5b14116d6f8e817e376d204097f
Author: triesap <tyson@radroots.org>
Date:   Thu,  5 Mar 2026 01:47:35 +0000

nostr-runtime: close no-default strict region gaps

Diffstat:
Mcrates/nostr-runtime/src/types.rs | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/crates/nostr-runtime/src/types.rs b/crates/nostr-runtime/src/types.rs @@ -173,10 +173,10 @@ mod tests { assert_eq!(spec.name.as_deref(), Some("posts")); assert_eq!(spec.stream_timeout_secs, 12); assert_eq!(spec.reconnect_delay_millis, 99); - assert!(matches!( + assert_eq!( spec.policy, RadrootsNostrSubscriptionPolicy::OneShotOnEose - )); + ); } #[test] @@ -190,16 +190,16 @@ mod tests { assert_eq!(spec.name.as_deref(), Some("posts")); assert_eq!(spec.stream_timeout_secs, 12); assert_eq!(spec.reconnect_delay_millis, 99); - assert!(matches!( + assert_eq!( spec.policy, RadrootsNostrSubscriptionPolicy::OneShotOnEose - )); + ); } #[test] fn connection_snapshot_default_is_red() { let snapshot = RadrootsNostrConnectionSnapshot::default(); - assert!(matches!(snapshot.light, RadrootsNostrTrafficLight::Red)); + assert_eq!(snapshot.light, RadrootsNostrTrafficLight::Red); assert_eq!(snapshot.connected, 0); assert_eq!(snapshot.connecting, 0); assert!(snapshot.last_error.is_none());