events: Add IgnoredUser::new
This commit is contained in:
parent
dab2956039
commit
ed100afddb
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user