Skip to content

Commit

Permalink
chore: format let-else (#291)
Browse files Browse the repository at this point in the history
This fixes CI failure
https://github.com/tokio-rs/tokio-uring/actions/runs/7437161507/job/20234483955?pr=290.

rustfmt recently supported the formatting of let-else syntax, so CI did
not fail before.
  • Loading branch information
taiki-e authored Jan 8, 2024
1 parent d5e9053 commit 926ff9d
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 926ff9d

Please sign in to comment.