Fix Forever

This commit is contained in:
Dario Nieuwenhuis 2020-12-30 04:17:45 +01:00
parent a02d0a378e
commit 6bc1a712ff

View File

@ -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");
} }