mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Fix Forever
This commit is contained in:
parent
a02d0a378e
commit
6bc1a712ff
@ -22,7 +22,7 @@ impl<T> Forever<T> {
|
||||
if self
|
||||
.used
|
||||
.compare_exchange(false, true, Ordering::AcqRel, Ordering::Acquire)
|
||||
.is_ok()
|
||||
.is_err()
|
||||
{
|
||||
panic!("Forever.put() called multiple times");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user