Cargo fmt

This commit is contained in:
jikstra
2020-04-28 16:44:31 +02:00
committed by link2xt
parent 737a741a54
commit 9eab96090d

View File

@@ -38,7 +38,7 @@ impl Into<Lot> 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);