Mark the ChatInfo struct non_exhaustive

This is a new feature in Rust 1.40, it means users outside the crate
will not be able to create these structs, allowing us to add fields
without breaking the public API.
This commit is contained in:
Floris Bruynooghe
2019-12-26 22:33:48 +01:00
committed by Alexander Krotov
parent 91eea03b18
commit 2990a1c255

View File

@@ -523,6 +523,7 @@ impl Chat {
/// The current state of a chat.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct ChatInfo {
/// The chat ID.
pub id: u32,