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

This commit is contained in:
Damir Jelić 2021-06-04 17:51:38 +02:00
parent 612fa46359
commit 31e00eb434

View file

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