From 926ff9de010f517cad9d3effe83e6e38f02dfc7f Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 8 Jan 2024 19:17:18 +0900 Subject: [PATCH] chore: format let-else (#291) 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. --- src/buf/fixed/plumbing/registry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buf/fixed/plumbing/registry.rs b/src/buf/fixed/plumbing/registry.rs index ff8ffe30..4f88746e 100644 --- a/src/buf/fixed/plumbing/registry.rs +++ b/src/buf/fixed/plumbing/registry.rs @@ -74,7 +74,7 @@ impl Registry { pub(crate) fn check_out(&mut self, index: usize) -> Option { let state = self.states.get_mut(index)?; let BufState::Free { init_len } = *state else { - return None + return None; }; *state = BufState::CheckedOut;