diff --git a/src/qr.rs b/src/qr.rs index 61480a94a..ad543223f 100644 --- a/src/qr.rs +++ b/src/qr.rs @@ -38,7 +38,7 @@ impl Into for Error { } pub fn starts_with_ignore_case(string: &str, pattern: &str) -> bool { - string.starts_with(&pattern.to_uppercase()) || string.starts_with(&pattern.to_lowercase()) + string.starts_with(&pattern.to_uppercase()) || string.starts_with(&pattern.to_lowercase()) } /// Check a scanned QR code. @@ -591,7 +591,6 @@ mod tests { ); assert_eq!(res.get_id(), 0); - let res = check_qr(&ctx.ctx, "OPENPGP4FPR:12345678901234567890"); assert_eq!(res.get_state(), LotState::QrError); assert_eq!(res.get_id(), 0);