mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
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.
This commit is contained in:
@@ -409,6 +409,9 @@ impl From<CoreEventType> for EventType {
|
|||||||
},
|
},
|
||||||
CoreEventType::ChatlistChanged => ChatlistChanged,
|
CoreEventType::ChatlistChanged => ChatlistChanged,
|
||||||
CoreEventType::EventChannelOverflow { n } => EventChannelOverflow { n },
|
CoreEventType::EventChannelOverflow { n } => EventChannelOverflow { n },
|
||||||
|
#[allow(unreachable_patterns)]
|
||||||
|
#[cfg(test)]
|
||||||
|
_ => unreachable!("This is just to silence a rust_analyzer false-positive"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user