mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 17:06:35 +03:00
Cargo fmt
This commit is contained in:
@@ -38,7 +38,7 @@ impl Into<Lot> for Error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn starts_with_ignore_case(string: &str, pattern: &str) -> bool {
|
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.
|
/// Check a scanned QR code.
|
||||||
@@ -591,7 +591,6 @@ mod tests {
|
|||||||
);
|
);
|
||||||
assert_eq!(res.get_id(), 0);
|
assert_eq!(res.get_id(), 0);
|
||||||
|
|
||||||
|
|
||||||
let res = check_qr(&ctx.ctx, "OPENPGP4FPR:12345678901234567890");
|
let res = check_qr(&ctx.ctx, "OPENPGP4FPR:12345678901234567890");
|
||||||
assert_eq!(res.get_state(), LotState::QrError);
|
assert_eq!(res.get_state(), LotState::QrError);
|
||||||
assert_eq!(res.get_id(), 0);
|
assert_eq!(res.get_id(), 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user