Skip to content

Commit

Permalink
Merge #187
Browse files Browse the repository at this point in the history
187: remove incorrect debug assert r=matklad a=matklad

Closes #186

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
  • Loading branch information
bors[bot] and matklad authored Jul 4, 2022
2 parents 2cdfc1e + c2ce5bd commit 2be67cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

-

## 1.12.1

- Remove incorrect `debug_assert`.

## 1.12.0

- Add `OnceCell::wait`, a blocking variant of `get`.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "once_cell"
version = "1.12.0"
version = "1.12.1"
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
license = "MIT OR Apache-2.0"
edition = "2018"
Expand Down
1 change: 1 addition & 0 deletions src/imp_pl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ fn initialize_inner(state: &AtomicU8, init: &mut dyn FnMut() -> bool) {
None,
);
},
Err(INCOMPLETE) => (),
Err(_) => debug_assert!(false),
}
}
Expand Down

0 comments on commit 2be67cc

Please sign in to comment.