aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-04 01:06:46 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-04 01:06:46 +0100
commit5dc2c1d351d75d150d671994b1c67b2c0f9d16a0 (patch)
treeb5c12396dda0b98fa6d363d268c294a08c2f6c39
parent6ff9763a440169d74d49bd14be3a51a86cdd454b (diff)
downloadrtic-5dc2c1d351d75d150d671994b1c67b2c0f9d16a0.tar.gz
rtic-5dc2c1d351d75d150d671994b1c67b2c0f9d16a0.tar.zst
rtic-5dc2c1d351d75d150d671994b1c67b2c0f9d16a0.zip
rtic-common: Fix safety section formatting
-rw-r--r--rtic-common/src/wait_queue.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/rtic-common/src/wait_queue.rs b/rtic-common/src/wait_queue.rs
index 7387a984..b1aa7757 100644
--- a/rtic-common/src/wait_queue.rs
+++ b/rtic-common/src/wait_queue.rs
@@ -69,7 +69,9 @@ impl<T: Clone> LinkedList<T> {
/// Put an element at the back of the queue.
///
- /// SAFETY: The link must live until it is removed from the queue.
+ /// # Safety
+ ///
+ /// The link must live until it is removed from the queue.
pub unsafe fn push(&self, link: Pin<&Link<T>>) {
cs::with(|_| {
// Make sure all previous writes are visible