Skip to content

Commit

Permalink
remove incorrect debug assert
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Jul 4, 2022
1 parent 2cdfc1e commit c2ce5bd
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 <[email protected]>"]
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 c2ce5bd

Please sign in to comment.