mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
clippy --fix && fmt
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
use crate::{
|
||||
common::{BitSource, CharacterSet, DecoderRXingResult, ECIStringBuilder, Result, Eci},
|
||||
common::{BitSource, CharacterSet, DecoderRXingResult, ECIStringBuilder, Eci, Result},
|
||||
Exceptions,
|
||||
};
|
||||
|
||||
@@ -751,7 +751,9 @@ fn decodeECISegment(bits: &mut BitSource, result: &mut ECIStringBuilder) -> Resu
|
||||
|
||||
let thirdByte = bits.readBits(8)?;
|
||||
|
||||
result.appendECI(Eci::from((firstByte - 192) * 64516 + 16383 + (secondByte - 1) * 254 + thirdByte - 1))?;
|
||||
result.appendECI(Eci::from(
|
||||
(firstByte - 192) * 64516 + 16383 + (secondByte - 1) * 254 + thirdByte - 1,
|
||||
))?;
|
||||
Ok((firstByte - 192) * 64516 + 16383 + (secondByte - 1) * 254 + thirdByte - 1 > 900)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user