From c2ce5bd9a47d4ced67ce94b8ee0cbd024f4ae8ee Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 4 Jul 2022 11:28:14 +0100 Subject: [PATCH] remove incorrect debug assert --- CHANGELOG.md | 4 ++++ Cargo.toml | 2 +- src/imp_pl.rs | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5c0ae7..f685f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ - +## 1.12.1 + +- Remove incorrect `debug_assert`. + ## 1.12.0 - Add `OnceCell::wait`, a blocking variant of `get`. diff --git a/Cargo.toml b/Cargo.toml index 5c77dfc..7ff9f8a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "once_cell" -version = "1.12.0" +version = "1.12.1" authors = ["Aleksey Kladov "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/src/imp_pl.rs b/src/imp_pl.rs index 2bd80fa..d80ca5e 100644 --- a/src/imp_pl.rs +++ b/src/imp_pl.rs @@ -168,6 +168,7 @@ fn initialize_inner(state: &AtomicU8, init: &mut dyn FnMut() -> bool) { None, ); }, + Err(INCOMPLETE) => (), Err(_) => debug_assert!(false), } }