aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 05:22:02 +0100
committertv <tv@krebsco.de>2026-10-31 05:22:02 +0100
commit27df21d3eadd6c28b7775e5b1a0a57e89b6b1d8b (patch)
tree13a79aeaeebeea21afd0b2bb3dd85866915ac3ab /src/swarm
parent76e91dfc62bc76228df8c07abf6e012e777c4eca (diff)
unify hex builders
Diffstat (limited to 'src/swarm')
-rw-r--r--src/swarm/auth.rs2
-rw-r--r--src/swarm/topology/tests.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/auth.rs b/src/swarm/auth.rs
index 088f615..50e2fae 100644
--- a/src/swarm/auth.rs
+++ b/src/swarm/auth.rs
@@ -172,7 +172,7 @@ mod tests {
use super::*;
fn hex(bytes: &[u8]) -> String {
- bytes.iter().map(|byte| format!("{byte:02x}")).collect()
+ crate::transport::Hex(bytes).to_string()
}
#[test]
diff --git a/src/swarm/topology/tests.rs b/src/swarm/topology/tests.rs
index d1b755f..d3a3e38 100644
--- a/src/swarm/topology/tests.rs
+++ b/src/swarm/topology/tests.rs
@@ -49,7 +49,7 @@ fn edges(graph: &BTreeMap<String, BTreeSet<String>>) -> BTreeSet<(String, String
}
fn hex(bytes: [u8; 32]) -> String {
- bytes.iter().map(|byte| format!("{byte:02x}")).collect()
+ crate::transport::Hex(&bytes).to_string()
}
/// Over random swarms (size, `k`, who is reachable, who is stable): links only