From f280baad7a91d73911f62dca007da791cc07dcac Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Fri, 9 Apr 2021 17:02:21 -0700 Subject: [PATCH] be more lenient on interpreting chaining --- src/command/class.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/command/class.rs b/src/command/class.rs index 340bc06..9a36d3d 100644 --- a/src/command/class.rs +++ b/src/command/class.rs @@ -88,18 +88,10 @@ impl Class { #[inline] pub fn chain(&self) -> Chain { - match self.range { - Range::Interindustry(which) => match which { - Interindustry::First | Interindustry::Further => { - if self.cla & (1 << 4) != 0 { - Chain::NotTheLast - } else { - Chain::LastOrOnly - } - } - _ => Chain::Unknown, - } - _ => Chain::Unknown, + if self.cla & (1 << 4) != 0 { + Chain::NotTheLast + } else { + Chain::LastOrOnly } }