Skip to content

Commit

Permalink
chore: clippy::question_mark
Browse files Browse the repository at this point in the history
  • Loading branch information
koivunej committed Apr 16, 2024
1 parent bf75eb8 commit 82daf28
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/utils/src/sync/heavier_once_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ impl<'a, T> Guard<'a, T> {

impl<T> Inner<T> {
pub fn take_and_deinit(&mut self) -> Option<(T, InitPermit)> {
let Some(value) = self.value.take() else {
return None;
};
let value = self.value.take()?;

let mut swapped = Inner::default();
let sem = swapped.init_semaphore.clone();
Expand Down

0 comments on commit 82daf28

Please sign in to comment.