From 6bc1a712ffd88d16ba8900e83672394b5c20a1e5 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 30 Dec 2020 04:17:45 +0100 Subject: [PATCH] Fix Forever --- embassy/src/util/forever.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy/src/util/forever.rs b/embassy/src/util/forever.rs index b1bfd1669..9b1f8bb3d 100644 --- a/embassy/src/util/forever.rs +++ b/embassy/src/util/forever.rs @@ -22,7 +22,7 @@ impl Forever { if self .used .compare_exchange(false, true, Ordering::AcqRel, Ordering::Acquire) - .is_ok() + .is_err() { panic!("Forever.put() called multiple times"); }