lib

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

commit 6e48c1a0408d140ef0d6242cbcc9765738648eed
parent 8027ab38508b9eb465452de9267ee82ebcc18874
Author: triesap <tyson@radroots.org>
Date:   Thu, 11 Jun 2026 17:59:57 -0700

style: satisfy release preflight formatting

- apply workspace rustfmt output for farm file tests
- apply flake cargo-fmt output for nostr ndb runtime adapter test
- verify cargo fmt --all -- --check and flake cargo-fmt derivation
- keep release-preflight blocker isolated to existing events trade coverage

Diffstat:
Mcrates/events/src/farm_file.rs | 16++++++++++------
Mcrates/nostr_ndb/src/runtime_adapter.rs | 4+---
2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/crates/events/src/farm_file.rs b/crates/events/src/farm_file.rs @@ -65,9 +65,15 @@ mod tests { metadata.owner_document_kind, RadrootsFarmCrdtDocumentKind::FarmTask ); - assert_eq!(metadata.caption.as_deref(), Some("Tomatoes harvested from Patch Y.")); + assert_eq!( + metadata.caption.as_deref(), + Some("Tomatoes harvested from Patch Y.") + ); assert_eq!(metadata.mime_type, "image/jpeg"); - assert_eq!(metadata.dimensions, Some(RadrootsFarmFileDimensions { w: 1600, h: 1200 })); + assert_eq!( + metadata.dimensions, + Some(RadrootsFarmFileDimensions { w: 1600, h: 1200 }) + ); assert_eq!(metadata.fallbacks.len(), 1); } @@ -101,11 +107,9 @@ mod tests { caption: Some("Tomatoes harvested from Patch Y.".to_string()), url: "https://media.example.invalid/blob/sha256".to_string(), mime_type: "image/jpeg".to_string(), - sha256: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" - .to_string(), + sha256: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef".to_string(), original_sha256: Some( - "abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789" - .to_string(), + "abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789".to_string(), ), size_bytes: Some(123_456), dimensions: Some(RadrootsFarmFileDimensions { w: 1600, h: 1200 }), diff --git a/crates/nostr_ndb/src/runtime_adapter.rs b/crates/nostr_ndb/src/runtime_adapter.rs @@ -79,9 +79,7 @@ mod tests { let config = RadrootsNostrNdbConfig::new(&db_dir); let ndb = RadrootsNostrNdb::open(config).expect("database should open"); let store = RadrootsNostrNdbEventStoreAdapter::new(ndb) - .with_source(RadrootsNostrNdbIngestSource::relay( - "wss://radroots.org", - )) + .with_source(RadrootsNostrNdbIngestSource::relay("wss://radroots.org")) .into_event_store(); let keys = RadrootsNostrKeys::generate();