aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/initrequest.rs
diff options
context:
space:
mode:
authorMax Audron <me@audron.dev>2026-02-21 13:32:00 +0100
committerMax Audron <me@audron.dev>2026-02-21 13:32:00 +0100
commit8882c121f83cf4513eaee7515d6dcea133a65d69 (patch)
treee2818c5d99f209159fd904e0c75d4bc30c262e82 /src/message/signalproxy/initrequest.rs
parentremove old readme.org (diff)
replace all match_variant instances with try_into
the match_variant macro was unclear, unreadable and no longer needed as we have automaticly derived from implementations for all Variant enum fields now
Diffstat (limited to '')
-rw-r--r--src/message/signalproxy/initrequest.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message/signalproxy/initrequest.rs b/src/message/signalproxy/initrequest.rs
index 1990dba..bf2f200 100644
--- a/src/message/signalproxy/initrequest.rs
+++ b/src/message/signalproxy/initrequest.rs
@@ -30,8 +30,8 @@ impl Deserialize for InitRequest {
Ok((
size,
Self {
- class_name: match_variant!(res.remove(0), Variant::ByteArray),
- object_name: match_variant!(res.remove(0), Variant::ByteArray),
+ class_name: res.remove(0).try_into().unwrap(),
+ object_name: res.remove(0).try_into().unwrap(),
},
))
}