diff options
Diffstat (limited to 'src/swarm')
| -rw-r--r-- | src/swarm/auth.rs | 2 | ||||
| -rw-r--r-- | src/swarm/topology/tests.rs | 2 |
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 |
