events: Add IgnoredUser::new

This commit is contained in:
Jonas Platte 2022-11-14 10:36:15 +01:00
parent dab2956039
commit ed100afddb
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -42,6 +42,13 @@ impl IgnoredUserListEventContent {
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct IgnoredUser {} pub struct IgnoredUser {}
impl IgnoredUser {
/// Creates an empty `IgnoredUser`.
pub fn new() -> Self {
Self::default()
}
}
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use assert_matches::assert_matches; use assert_matches::assert_matches;