From 95ac620e2dee308ecb3bed21972a1be7c08f8688 Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Fri, 20 Mar 2026 14:22:35 +0100 Subject: [PATCH] Properly return topic messages to outer scope Signed-off-by: Lee Smet --- mycelium/src/message.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycelium/src/message.rs b/mycelium/src/message.rs index 98ce21c..b224705 100644 --- a/mycelium/src/message.rs +++ b/mycelium/src/message.rs @@ -1339,9 +1339,9 @@ where .find(|(_, v)| &v.topic == topic) { let msg = if pop { - inbox.complete_msges.remove(idx).unwrap(); + inbox.complete_msges.remove(idx).unwrap() } else { - inbox.complete_msges[idx].clone(); + inbox.complete_msges[idx].clone() }; self.notify_read(&msg);