Skip to content

Commit

Permalink
Adapted get_mut_unchecked to not to use removed unwrap_unchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
dynos01 committed Jun 5, 2023
1 parent e2c8ef1 commit c193180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imp_std.rs
Expand Up @@ -112,7 +112,7 @@ impl<T> OnceCell<T> {
pub(crate) unsafe fn get_mut_unchecked(&mut self) -> &mut T {
debug_assert!(self.is_initialized());
let slot = &mut *self.value.get();
crate::unwrap_unchecked(slot.as_mut())
slot.as_mut().unwrap_unchecked()
}

/// Gets the mutable reference to the underlying value.
Expand Down

0 comments on commit c193180

Please sign in to comment.