From f065cfacf34f862232edb45b3023610c96ec93c4 Mon Sep 17 00:00:00 2001 From: Asakura Mizu Date: Thu, 15 Aug 2024 22:31:46 +0800 Subject: [PATCH] fix(buf): remove unreachable pattern --- compio-buf/src/buf_result.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compio-buf/src/buf_result.rs b/compio-buf/src/buf_result.rs index 496e46c8..88232674 100644 --- a/compio-buf/src/buf_result.rs +++ b/compio-buf/src/buf_result.rs @@ -124,7 +124,6 @@ impl FromResidual> for BufResult { fn from_residual(residual: BufResult) -> Self { match residual { BufResult(Err(e), b) => BufResult(Err(e), b), - _ => unreachable!(), } } } @@ -144,7 +143,6 @@ impl FromResidual> for io::Result { fn from_residual(residual: BufResult) -> Self { match residual { BufResult(Err(e), _) => Err(e), - _ => unreachable!(), } } }