mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
clippy fix
This commit is contained in:
@@ -19,7 +19,7 @@ pub fn GetDataMaskBit(maskIndex: u32, x: u32, y: u32, isMicro: Option<bool>) ->
|
||||
let isMicro = isMicro.unwrap_or(false);
|
||||
let mut maskIndex = maskIndex;
|
||||
if isMicro {
|
||||
if maskIndex < 0 || maskIndex >= 4 {
|
||||
if !(0..4).contains(&maskIndex) {
|
||||
return Err(Exceptions::illegal_argument_with(
|
||||
"QRCode maskIndex out of range",
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user