aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/rpccall/network.rs
diff options
context:
space:
mode:
authorMax Audron <me@audron.dev>2026-02-21 14:35:01 +0100
committerMax Audron <me@audron.dev>2026-02-21 14:35:01 +0100
commitf42ef4bec6d1c63c0d8564cfb06e996666dedbe3 (patch)
treee526bf4cae5ecf798469acc157b14122d4a5e25a /src/message/signalproxy/rpccall/network.rs
parentreplace all match_variant instances with try_into (diff)
clean up clippy lints
Diffstat (limited to '')
-rw-r--r--src/message/signalproxy/rpccall/network.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/message/signalproxy/rpccall/network.rs b/src/message/signalproxy/rpccall/network.rs
index aeb3f80..738dddf 100644
--- a/src/message/signalproxy/rpccall/network.rs
+++ b/src/message/signalproxy/rpccall/network.rs
@@ -53,7 +53,7 @@ impl RpcCallType for RemoveNetwork {
fn to_network(&self) -> Result<Vec<crate::primitive::Variant>, crate::ProtocolError> {
Ok(vec![
Variant::ByteArray(Self::NAME.to_string()),
- self.network_id.clone().into(),
+ self.network_id.into(),
])
}
@@ -86,7 +86,7 @@ impl RpcCallType for NetworkCreated {
fn to_network(&self) -> Result<Vec<crate::primitive::Variant>, crate::ProtocolError> {
Ok(vec![
Variant::ByteArray(Self::NAME.to_string()),
- self.network_id.clone().into(),
+ self.network_id.into(),
])
}
@@ -119,7 +119,7 @@ impl RpcCallType for NetworkRemoved {
fn to_network(&self) -> Result<Vec<crate::primitive::Variant>, crate::ProtocolError> {
Ok(vec![
Variant::ByteArray(Self::NAME.to_string()),
- self.network_id.clone().into(),
+ self.network_id.into(),
])
}