From 393478019b3a076abc7af5f0d2c7b980b3329550 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Sat, 18 Jul 2026 22:35:11 -0600 Subject: [PATCH] style: rustfmt --- crates/lxmf-tools/src/commands/lxmd.rs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/crates/lxmf-tools/src/commands/lxmd.rs b/crates/lxmf-tools/src/commands/lxmd.rs index d61b413..bd15a6a 100644 --- a/crates/lxmf-tools/src/commands/lxmd.rs +++ b/crates/lxmf-tools/src/commands/lxmd.rs @@ -3487,13 +3487,21 @@ mod tests { let mut msg = LxMessage::new(dest, [0xCD; 16], "t", "hello", DeliveryMethod::Propagated); msg.signature = Some([0u8; 64]); let data = msg.pack().expect("pack"); - let hash = LxMessage::unpack(&data).expect("unpack").hash.expect("hash"); - let msg_path = runner.messages_dir.join(format!("{}.lxm", hex::encode(hash))); + let hash = LxMessage::unpack(&data) + .expect("unpack") + .hash + .expect("hash"); + let msg_path = runner + .messages_dir + .join(format!("{}.lxm", hex::encode(hash))); runner.handle_propagation_downloaded_data(&data); // Grace period: an (incorrectly) accepted message would be written on the blocking pool. tokio::time::sleep(std::time::Duration::from_millis(300)).await; - assert!(!msg_path.exists(), "unstamped propagated message must be rejected"); + assert!( + !msg_path.exists(), + "unstamped propagated message must be rejected" + ); runner.config.enforce_stamps = false; runner.handle_propagation_downloaded_data(&data); @@ -3501,7 +3509,10 @@ mod tests { while !msg_path.exists() && std::time::Instant::now() < deadline { tokio::time::sleep(std::time::Duration::from_millis(50)).await; } - assert!(msg_path.exists(), "message must be stored once enforcement is off"); + assert!( + msg_path.exists(), + "message must be stored once enforcement is off" + ); let _ = std::fs::remove_dir_all(&temp); }