From ef12ae6b04fa57371507e4ab49f49cb51c30ee4c Mon Sep 17 00:00:00 2001 From: Yandrik Date: Wed, 15 Mar 2023 20:17:26 +0100 Subject: refactor: re-formatted files --- rtic-sync/src/channel.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'rtic-sync') diff --git a/rtic-sync/src/channel.rs b/rtic-sync/src/channel.rs index d0670c2..b7b5a48 100644 --- a/rtic-sync/src/channel.rs +++ b/rtic-sync/src/channel.rs @@ -103,7 +103,8 @@ impl Channel { #[macro_export] macro_rules! make_channel { ($type:path, $size:expr) => {{ - static mut CHANNEL: $crate::channel::Channel<$type, $size> = $crate::channel::Channel::new(); + static mut CHANNEL: $crate::channel::Channel<$type, $size> = + $crate::channel::Channel::new(); // SAFETY: This is safe as we hide the static mut from others to access it. // Only this point is where the mutable access happens. @@ -125,8 +126,8 @@ pub enum TrySendError { } impl core::fmt::Debug for NoReceiver - where - T: core::fmt::Debug, +where + T: core::fmt::Debug, { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "NoReceiver({:?})", self.0) @@ -134,8 +135,8 @@ impl core::fmt::Debug for NoReceiver } impl core::fmt::Debug for TrySendError - where - T: core::fmt::Debug, +where + T: core::fmt::Debug, { fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { match self { @@ -146,8 +147,8 @@ impl core::fmt::Debug for TrySendError } impl PartialEq for TrySendError - where - T: PartialEq, +where + T: PartialEq, { fn eq(&self, other: &Self) -> bool { match (self, other) { @@ -301,7 +302,7 @@ impl<'a, T, const N: usize> Sender<'a, T, N> { Poll::Pending } }) - .await; + .await; // Make sure the link is removed from the queue. drop(dropper); @@ -431,7 +432,7 @@ impl<'a, T, const N: usize> Receiver<'a, T, N> { Poll::Pending }) - .await + .await } /// Returns true if there are no `Sender`s. -- cgit v1.2.3