Skip to content

Commit

Permalink
Merge pull request #287 from AsakuraMizu/master
Browse files Browse the repository at this point in the history
fix(buf): remove unreachable pattern
  • Loading branch information
Berrysoft authored Aug 15, 2024
2 parents d24ce51 + f065cfa commit 6241d24
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compio-buf/src/buf_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ impl<T, B> FromResidual<BufResult<Infallible, B>> for BufResult<T, B> {
fn from_residual(residual: BufResult<Infallible, B>) -> Self {
match residual {
BufResult(Err(e), b) => BufResult(Err(e), b),
_ => unreachable!(),
}
}
}
Expand All @@ -144,7 +143,6 @@ impl<T, B> FromResidual<BufResult<Infallible, B>> for io::Result<T> {
fn from_residual(residual: BufResult<Infallible, B>) -> Self {
match residual {
BufResult(Err(e), _) => Err(e),
_ => unreachable!(),
}
}
}
Expand Down

0 comments on commit 6241d24

Please sign in to comment.