aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/objects/networkinfo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/message/signalproxy/objects/networkinfo.rs')
-rw-r--r--src/message/signalproxy/objects/networkinfo.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/message/signalproxy/objects/networkinfo.rs b/src/message/signalproxy/objects/networkinfo.rs
index a7f0a3c..e36297d 100644
--- a/src/message/signalproxy/objects/networkinfo.rs
+++ b/src/message/signalproxy/objects/networkinfo.rs
@@ -16,7 +16,7 @@ pub struct NetworkInfo {
rename = "ServerList",
override_type = "VariantList",
to_map = "|server| Variant::VariantMap(server.to_network())",
- from_map = "|server| NetworkServer::from_network(match_variant!(server, Variant::VariantMap))"
+ from_map = "|server| NetworkServer::from_network(&mut match_variant!(server, Variant::VariantMap))"
)]
pub server_list: Vec<NetworkServer>,
#[network(rename = "perform")]
@@ -166,4 +166,9 @@ mod tests {
fn networkinfo_to_network() {
assert_eq!(get_runtime().to_network(), get_network())
}
+
+ #[test]
+ fn networkinfo_from_network() {
+ assert_eq!(NetworkInfo::from_network(&mut get_network()), get_runtime())
+ }
}
r>2025-12-14add server passwordMax Audron-1/+6 2025-12-14update cargo dependenciesMax Audron-670/+505 2025-12-14update flake inputs to nixpkgs 25.11Max Audron-36/+41 2025-05-06fix rustls missing cryptoproviderMax Audron-1/+6 2025-05-06remove too commonly used used for shifty_eyesMax Audron-1/+1 2025-05-06fix truncate on unicodeMax Audron-10/+20 2025-05-06update dependenciesMax Audron-691/+1659 2024-08-12add nix build and moduleMax Audron-5/+427 2022-02-19remove jsonnet lock fileMax Audron-36/+0 2022-02-19fix deploy to work with gitlab agentMax Audron-4/+4 2021-10-22write tons of documentation and reorganize some modulesMax Audron-65/+300 2021-10-22remove wolfram alpha url shorteningMax Audron-1/+2 2021-10-20remove failing wolfram alpha test casesMax Audron-105/+55 2021-10-20bump version to 1.6.2Max Audron-3/+2 2021-10-20prepare for release on crates.ioMax Audron-39/+65 2021-10-20add async docs to macro crate and bump versionMax Audron-9/+10 2021-10-20change hook errors to be logged as warningsMax Audron-3/+3 2021-10-20fix configuration not loading correctly on release buildsMax Audron-8/+23 2021-10-19replace sedregex crate8-rework-sedMax Audron-20/+358 2021-10-19add formatting trait for irc codesMax Audron-0/+129 2021-10-17fix links in readmeMax Audron-2/+2