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 '')
-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,)*]))
};
}
tle='2025-02-25 00:11:49 +0100'>2025-02-25Use BufferId in BufferInfoTobias Deiminger-10/+11 2025-02-25Use BufferId in VariantTobias Deiminger-2/+33 2025-02-25Add BufferId as Rust typeTobias Deiminger-0/+39 2025-02-25Use MsgId in MessageTobias Deiminger-18/+6 2025-02-25Use MsgId in VariantTobias Deiminger-20/+37 2025-02-25Add MsgId as Rust typeTobias Deiminger-0/+56 2025-02-24added session manager comments and log messageMax Audron-1/+3 2025-02-23add identity syncable to SessionManagerMax Audron-1/+8 2025-02-23add syncables for IrcUserMax Audron-2/+53 2025-02-23move network config to it's own file and impl it's syncMax Audron-23/+84 2025-02-23add basic network syncablesMax Audron-39/+420 2025-02-23clean up unused_import and unused_variables a bitMax Audron-2/+8 2025-02-23fix server feature errorsMax Audron-28/+23 2025-02-23fix ircchannel and maplist network representationMax Audron-154/+137 2025-02-22replace deprecated failure crate with thiserrorMax Audron-278/+194 2025-02-22update dependencies and fix errorsMax Audron-508/+332 2025-02-22update flakeMax Audron-94/+117 2024-05-22add todos to readmeMax Audron-16/+35