aboutsummaryrefslogtreecommitdiff
path: root/src/message/signalproxy/objects/coreinfo.rs
diff options
context:
space:
mode:
authorMax Audron <me@audron.dev>2026-02-22 14:16:20 +0100
committerMax Audron <me@audron.dev>2026-02-22 14:16:20 +0100
commit2af049dbab329ba049d137c7fc3a9c3aed6a780e (patch)
treeddd5c3057404c95656e2f3b39f58db6d1d655250 /src/message/signalproxy/objects/coreinfo.rs
parentNetworkList and signalproxy objects error handling (diff)
add error for unkown sync message slot_name
Diffstat (limited to 'src/message/signalproxy/objects/coreinfo.rs')
-rw-r--r--src/message/signalproxy/objects/coreinfo.rs7
1 files changed, 2 insertions, 5 deletions
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: <CoreInfo as NetworkMap>::Item,
- ) -> Result<()>
+ fn request_update(&mut self, mut _param: <CoreInfo as NetworkMap>::Item) -> Result<()>
where
Self: Sized,
{