From 9887f18a51015c771d039f80f347a6ed18cce055 Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Fri, 17 Jun 2022 15:08:31 +0200 Subject: [PATCH] fmt --- embassy/src/channel/pubsub/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy/src/channel/pubsub/mod.rs b/embassy/src/channel/pubsub/mod.rs index fdd67536..e421df58 100644 --- a/embassy/src/channel/pubsub/mod.rs +++ b/embassy/src/channel/pubsub/mod.rs @@ -341,12 +341,12 @@ pub enum Error { /// This trait is used so that Sub and Pub can be generic over the channel. pub trait PubSubBehavior { /// Try to get a message from the queue with the given message id. - /// + /// /// If the message is not yet present and a context is given, then its waker is registered in the subsriber wakers. fn get_message_with_context(&self, next_message_id: &mut u64, cx: Option<&mut Context<'_>>) -> Poll>; /// Try to publish a message to the queue. - /// + /// /// If the queue is full and a context is given, then its waker is registered in the publisher wakers. fn publish_with_context(&self, message: T, cx: Option<&mut Context<'_>>) -> Result<(), T>;