Fix Forever
This commit is contained in:
parent
a02d0a378e
commit
6bc1a712ff
@ -22,7 +22,7 @@ impl<T> Forever<T> {
|
|||||||
if self
|
if self
|
||||||
.used
|
.used
|
||||||
.compare_exchange(false, true, Ordering::AcqRel, Ordering::Acquire)
|
.compare_exchange(false, true, Ordering::AcqRel, Ordering::Acquire)
|
||||||
.is_ok()
|
.is_err()
|
||||||
{
|
{
|
||||||
panic!("Forever.put() called multiple times");
|
panic!("Forever.put() called multiple times");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user