crypto: Don't panic if we get a unknown cancel code

master
Damir Jelić 2021-06-04 17:51:38 +02:00
parent 612fa46359
commit 31e00eb434
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ impl Cancelled {
} }
CancelCode::User => "The user cancelled the verification.", CancelCode::User => "The user cancelled the verification.",
CancelCode::UserMismatch => "The expected user did not match the verified user", CancelCode::UserMismatch => "The expected user did not match the verified user",
_ => unimplemented!(), _ => "Unknown cancel reason",
}; };
Self { cancel_code: code, reason } Self { cancel_code: code, reason }