Fix Forever
This commit is contained in:
parent
a02d0a378e
commit
6bc1a712ff
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue