From 1047ffcce71668202920ab5cc7e4c904517c01a2 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 7 Jan 2024 17:49:05 +0900 Subject: [PATCH] chore: format let-else --- 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;