From 31e00eb434cca023ca0c0483fba30680512ae309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 4 Jun 2021 17:51:38 +0200 Subject: [PATCH] crypto: Don't panic if we get a unknown cancel code --- matrix_sdk_crypto/src/verification/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_sdk_crypto/src/verification/mod.rs b/matrix_sdk_crypto/src/verification/mod.rs index 2d9bd37f..adb6f63c 100644 --- a/matrix_sdk_crypto/src/verification/mod.rs +++ b/matrix_sdk_crypto/src/verification/mod.rs @@ -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 }