move more possible option higher

This commit is contained in:
Nikita Sivukhin
2025-10-15 17:26:35 +04:00
parent f19c73822e
commit c0fdaeb475

View File

@@ -133,8 +133,8 @@ impl BranchOffset {
/// Returns the offset value. Panics if the branch offset is a label or placeholder.
pub fn as_offset_int(&self) -> InsnReference {
match self {
BranchOffset::Label(v) => unreachable!("Unresolved label: {}", v),
BranchOffset::Offset(v) => *v,
BranchOffset::Label(v) => unreachable!("Unresolved label: {}", v),
BranchOffset::Placeholder => unreachable!("Unresolved placeholder"),
}
}