From 2af049dbab329ba049d137c7fc3a9c3aed6a780e Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sun, 22 Feb 2026 14:16:20 +0100 Subject: add error for unkown sync message slot_name --- src/message/signalproxy/objects/coreinfo.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/message/signalproxy/objects/coreinfo.rs') diff --git a/src/message/signalproxy/objects/coreinfo.rs b/src/message/signalproxy/objects/coreinfo.rs index bde4217..c901f91 100644 --- a/src/message/signalproxy/objects/coreinfo.rs +++ b/src/message/signalproxy/objects/coreinfo.rs @@ -32,7 +32,7 @@ impl crate::message::StatefulSyncableClient for CoreInfo { #[allow(clippy::single_match)] match msg.slot_name.as_str() { "setCoreData" => self.set_core_data(CoreData::from_network_map(&mut get_param!(msg))), - _ => Ok(()), + unknown => Err(crate::ProtocolError::UnknownMsgSlotName(unknown.to_string())), } } @@ -48,10 +48,7 @@ impl crate::message::StatefulSyncableClient for CoreInfo { #[cfg(feature = "server")] impl crate::message::StatefulSyncableServer for CoreInfo { /// Not Implemented - fn request_update( - &mut self, - mut _param: ::Item, - ) -> Result<()> + fn request_update(&mut self, mut _param: ::Item) -> Result<()> where Self: Sized, { -- cgit v1.2.3