From cc542048e369dda0a773e1e3a4601dc7d20ff16a Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sat, 21 Feb 2026 17:48:06 +0100 Subject: Syncable trait error handling --- src/message/signalproxy/objects/networkconfig.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/message/signalproxy/objects/networkconfig.rs') diff --git a/src/message/signalproxy/objects/networkconfig.rs b/src/message/signalproxy/objects/networkconfig.rs index c4f5397..6268a69 100644 --- a/src/message/signalproxy/objects/networkconfig.rs +++ b/src/message/signalproxy/objects/networkconfig.rs @@ -28,7 +28,7 @@ impl Syncable for NetworkConfig { #[cfg(feature = "client")] impl crate::message::StatefulSyncableClient for NetworkConfig { - fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) + fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) -> Result<(), crate::error::ProtocolError> where Self: Sized, { @@ -43,12 +43,13 @@ impl crate::message::StatefulSyncableClient for NetworkConfig { "setStandardCtcp" => self.set_standard_ctcp(get_param!(msg)), _ => (), } + Ok(()) } } #[cfg(feature = "server")] impl crate::message::StatefulSyncableServer for NetworkConfig { - fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) + fn sync_custom(&mut self, mut msg: crate::message::SyncMessage) -> Result<(), crate::error::ProtocolError> where Self: Sized, { @@ -63,5 +64,6 @@ impl crate::message::StatefulSyncableServer for NetworkConfig { "requestSetStandardCtcp" => self.set_standard_ctcp(get_param!(msg)), _ => (), } + Ok(()) } } -- cgit v1.2.3