diff --git a/crates/ruma-common/src/events/room/member.rs b/crates/ruma-common/src/events/room/member.rs index 88996a1d..98fae871 100644 --- a/crates/ruma-common/src/events/room/member.rs +++ b/crates/ruma-common/src/events/room/member.rs @@ -21,7 +21,7 @@ use crate::{ mod change; use self::change::membership_change; -pub use self::change::{MembershipChange, MembershipDetails}; +pub use self::change::{Change, MembershipChange, MembershipDetails}; /// The content of an `m.room.member` event. /// diff --git a/crates/ruma-common/src/events/room/member/change.rs b/crates/ruma-common/src/events/room/member/change.rs index 4e4d3606..afb9cf2a 100644 --- a/crates/ruma-common/src/events/room/member/change.rs +++ b/crates/ruma-common/src/events/room/member/change.rs @@ -61,6 +61,7 @@ pub enum MembershipChange<'a> { /// A simple representation of a change, containing old and new data. #[derive(Clone, Debug)] +#[allow(clippy::exhaustive_structs)] pub struct Change { /// The old data. pub old: T,