mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
cargo fmt
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user