From 03996583a1811fd6926d0f5e4115b6165cbceda0 Mon Sep 17 00:00:00 2001 From: Dion Dokter Date: Thu, 16 Jun 2022 12:36:39 +0200 Subject: [PATCH] fmt --- embassy/src/channel/pubsub.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/embassy/src/channel/pubsub.rs b/embassy/src/channel/pubsub.rs index 5e5cce9c..fb8d0ef5 100644 --- a/embassy/src/channel/pubsub.rs +++ b/embassy/src/channel/pubsub.rs @@ -25,7 +25,9 @@ pub struct PubSubChannel>>, } -impl PubSubChannel { +impl + PubSubChannel +{ /// Create a new channel pub const fn new() -> Self { Self { @@ -134,7 +136,7 @@ impl ImmediatePublisher<'a, T> { pub fn try_publish(&self, message: T) -> Result<(), T> { self.channel.try_publish(message) } - } /// Error type for the [PubSubChannel] @@ -480,8 +481,8 @@ pub enum WaitResult { #[cfg(test)] mod tests { - use crate::blocking_mutex::raw::NoopRawMutex; use super::*; + use crate::blocking_mutex::raw::NoopRawMutex; #[futures_test::test] async fn all_subscribers_receive() { @@ -586,5 +587,4 @@ mod tests { drop(sub0); } - }