aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-12-20 13:13:00 +0100
committerMax Audron <audron@cocaine.farm>2023-12-20 13:13:00 +0100
commite6980211c4c53fc1eeb686cd12363a8fa603daa3 (patch)
tree2c248fc32d258dea722dbbefd7ab5465954e2ebc /src/util.rs
parentuse VariantMap as target for generic NetworkMap for HashMap impl (diff)
rework Network derives to be more consistent
i don't even know anymore, blame past me
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs
index 251e089..98e3521 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -42,11 +42,11 @@ pub fn insert_bytes(pos: usize, buf: &mut Vec<u8>, input: &mut [u8]) {
macro_rules! map {
// map-like
($($k:expr => $v:expr),* $(,)?) => {
- std::iter::Iterator::collect(std::array::IntoIter::new([$(($k, $v),)*]))
+ std::iter::Iterator::collect(std::iter::IntoIterator::into_iter([$(($k, $v),)*]))
};
// set-like
($($v:expr),* $(,)?) => {
- std::iter::Iterator::collect(std::array::IntoIter::new([$($v,)*]))
+ std::iter::Iterator::collect(std::iter::IntoIterator::into_iter([$($v,)*]))
};
}