be more lenient on interpreting chaining

This commit is contained in:
Conor Patrick
2021-04-13 23:14:07 +02:00
committed by Nicolas Stalder
parent 1cf1d44364
commit f280baad7a
+4 -12
View File
@@ -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
}
}