From 309ae75a4ede6113065873f2b87f5bdfe03ea54b Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 17 Nov 2026 12:15:24 -0500 Subject: [PATCH] pcap: let the packet-block helper use is_multiple_of --- crates/pcap/tests/support/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/pcap/tests/support/mod.rs b/crates/pcap/tests/support/mod.rs index f897b5142..708864c83 100644 --- a/crates/pcap/tests/support/mod.rs +++ b/crates/pcap/tests/support/mod.rs @@ -136,7 +136,7 @@ pub fn pcap(frames: &[Vec]) -> Vec { pub fn block(t: u32, body: &[u8]) -> Vec { let mut body = body.to_vec(); - while body.len() % 4 != 0 { + while !body.len().is_multiple_of(4) { body.push(0); } let len = (body.len() + 12) as u32;