From 12dfc4dca3aa0d38f48e23bbdf35ab6b6a01950b Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Wed, 22 Jun 2022 14:13:01 +0200 Subject: [PATCH] Fixed a pubsub mutability inconsistency --- embassy/src/channel/pubsub/publisher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy/src/channel/pubsub/publisher.rs b/embassy/src/channel/pubsub/publisher.rs index 89a0b924..53b0d43b 100644 --- a/embassy/src/channel/pubsub/publisher.rs +++ b/embassy/src/channel/pubsub/publisher.rs @@ -108,7 +108,7 @@ impl<'a, PSB: PubSubBehavior + ?Sized, T: Clone> ImmediatePub<'a, PSB, T> { } /// Publish the message right now even when the queue is full. /// This may cause a subscriber to miss an older message. - pub fn publish_immediate(&mut self, message: T) { + pub fn publish_immediate(&self, message: T) { self.channel.publish_immediate(message) }