From 9eab96090d1e39f4ca0709ff21183f57e943032c Mon Sep 17 00:00:00 2001 From: jikstra Date: Tue, 28 Apr 2020 16:44:31 +0200 Subject: [PATCH] Cargo fmt --- src/qr.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);