cargo fmt

This commit is contained in:
Henry Schimke
2022-12-15 13:24:07 -06:00
parent c167442e5b
commit 919826b3ec
14 changed files with 417 additions and 274 deletions

View File

@@ -54,7 +54,11 @@ impl AbstractExpandedDecoder for AI01320xDecoder<'_> {
impl AI01decoder for AI01320xDecoder<'_> {}
impl<'a> AI01320xDecoder<'_> {
pub fn new(information: &'a BitArray) -> AI01320xDecoder<'a> {
AI01320xDecoder(AI013x0xDecoder::new(information, addWeightCode, checkWeight))
AI01320xDecoder(AI013x0xDecoder::new(
information,
addWeightCode,
checkWeight,
))
}
}
@@ -66,10 +70,10 @@ fn addWeightCode(buf: &mut String, weight: u32) {
}
}
fn checkWeight( weight: u32) -> u32 {
fn checkWeight(weight: u32) -> u32 {
if weight < 10000 {
weight
} else {
weight - 10000
}
}
}