Skip to content

Commit

Permalink
chore: format let-else
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 7, 2024
1 parent d5e9053 commit 1047ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buf/fixed/plumbing/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<T: IoBufMut> Registry<T> {
pub(crate) fn check_out(&mut self, index: usize) -> Option<CheckedOutBuf> {
let state = self.states.get_mut(index)?;
let BufState::Free { init_len } = *state else {
return None
return None;
};

*state = BufState::CheckedOut;
Expand Down

0 comments on commit 1047ffc

Please sign in to comment.