Decoder: mark redundant match arm as unreachable

This commit is contained in:
Ivan Smirnov 2021-11-30 14:30:55 +00:00
parent 09976fb889
commit 572194c0f2

View file

@ -135,7 +135,12 @@ where
*px_out = px;
continue;
}
_ => {}
_ => {
unsafe {
// the compiler should figure it out on its own, but just in case
core::hint::unreachable_unchecked()
}
}
}
unsafe {