mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 12:12:50 +01:00
rtic-common: Fix safety section formatting
This commit is contained in:
parent
6ff9763a44
commit
5dc2c1d351
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue