From 18d3c803deaf004114ec5f5bfd8de66bd241d2f4 Mon Sep 17 00:00:00 2001 From: Joshua Salzedo Date: Wed, 24 Mar 2021 13:21:32 -0700 Subject: [PATCH] Add missing newlines --- embassy/src/util/drop_bomb.rs | 1 + embassy/src/util/signal.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/embassy/src/util/drop_bomb.rs b/embassy/src/util/drop_bomb.rs index 7f0cc5d9c..6638a09cc 100644 --- a/embassy/src/util/drop_bomb.rs +++ b/embassy/src/util/drop_bomb.rs @@ -15,6 +15,7 @@ impl DropBomb { pub fn new() -> Self { Self { _private: () } } + // Diffuses the bomb, rendering it safe to drop. pub fn defuse(self) { mem::forget(self) diff --git a/embassy/src/util/signal.rs b/embassy/src/util/signal.rs index 12dc7c318..0fd5c9275 100644 --- a/embassy/src/util/signal.rs +++ b/embassy/src/util/signal.rs @@ -32,6 +32,7 @@ impl Signal { state: UnsafeCell::new(State::None), } } + /// Mark this Signal as completed. pub fn signal(&self, val: T) { cortex_m::interrupt::free(|_| unsafe {