From bb8b262e68eb2fdaefa9e6b0d160b2ac38cb13a5 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Tue, 29 Oct 2024 17:45:26 +0100 Subject: [PATCH] chore: Silence another rust-analyzer false-positive (#6124) Follow-up to #6077. Not sure why this error didn't show up in my rust-analyzer until now. --- deltachat-jsonrpc/src/api/types/events.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deltachat-jsonrpc/src/api/types/events.rs b/deltachat-jsonrpc/src/api/types/events.rs index fab754202..34ccdf395 100644 --- a/deltachat-jsonrpc/src/api/types/events.rs +++ b/deltachat-jsonrpc/src/api/types/events.rs @@ -409,6 +409,9 @@ impl From for EventType { }, CoreEventType::ChatlistChanged => ChatlistChanged, CoreEventType::EventChannelOverflow { n } => EventChannelOverflow { n }, + #[allow(unreachable_patterns)] + #[cfg(test)] + _ => unreachable!("This is just to silence a rust_analyzer false-positive"), } } }