aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/objects/aliasmanager.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2021-09-28 18:13:43 +0200
committerMax Audron <audron@cocaine.farm>2021-09-28 18:16:20 +0200
commit2831748466d7aca099502a265eced5d1d88c871a (patch)
treee2ab7581cae8df2b1c041dcf81cbe22daf00e558 /src/message/signalproxy/objects/aliasmanager.rs
parentadd handle_syncmessage to aliasmanager (diff)
adapt Sync* types
Diffstat (limited to 'src/message/signalproxy/objects/aliasmanager.rs')
-rw-r--r--src/message/signalproxy/objects/aliasmanager.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/message/signalproxy/objects/aliasmanager.rs b/src/message/signalproxy/objects/aliasmanager.rs
index 61da289..cb634ba 100644
--- a/src/message/signalproxy/objects/aliasmanager.rs
+++ b/src/message/signalproxy/objects/aliasmanager.rs
@@ -11,7 +11,6 @@ use crate::primitive::{VariantList, VariantMap};
/// keeps a list of all registered aliases
/// syncable
#[derive(Clone, Debug, std::cmp::PartialEq, NetworkList, NetworkMap)]
-#[network]
pub struct AliasManager {
#[network(rename = "Aliases", variant = "VariantMap", network)]
pub aliases: Vec<Alias>,
@@ -115,11 +114,11 @@ mod tests {
#[test]
fn aliasmanager_to_network() {
- assert_eq!(get_src().to_network(), get_dest())
+ assert_eq!(get_src().to_network_list(), get_dest())
}
#[test]
fn aliasmanager_from_network() {
- assert_eq!(AliasManager::from_network(&mut get_dest()), get_src())
+ assert_eq!(AliasManager::from_network_list(&mut get_dest()), get_src())
}
}
ss='nohover-highlight'> 2021-07-21rewrite network derive to work more consistentlyMax Audron-78/+90 this mainly ensures that the network and override_type / variant options work across the board 2021-07-21fix wrong capitalization for HighlightRuleListMax Audron-2/+2 2021-07-21implement the Network trait generically for all inner Variant TypesMax Audron-1/+66 2021-07-21change IRC MessageType to be a bitflag instead of enumMax Audron-54/+94 the BufferSyncer object uses this type in a bitflag manner to indicate all the kinds of change that happened. bitflag still allows very enum esque usage so the change is okay for the Message object. 2021-07-21fix network objectMax Audron-18/+24 2021-07-21minor docs and cleanupMax Audron-4/+8 2021-04-05WIP: impl more signalproxy objectsMax Audron-1000/+1621 2021-03-09WIP: impl signalproxy typesMax Audron-253/+376 2021-01-21add to and from network deriveMax Audron-42/+2767 2021-01-21reorganize tests and add quassel featuresMax Audron-551/+850 2021-01-04add example program: quasselproxyclientMax Audron-0/+280 and inspection proxy for quassel 2021-01-04random stuffMax Audron-2/+9 2021-01-04add more signalproxy objectsMax Audron-40/+120 2021-01-04add message parsing feature flagsMax Audron-43/+96 2021-01-04fix parsing of datetime when value is -1Max Audron-1/+9 2021-01-02update dependenciesMax Audron-267/+27 2021-01-02rework handshakemessage parsingMax Audron-141/+278 2020-10-16updateMax Audron-1553/+294 2020-10-16update paperworkMax Audron-487/+391