diff --git a/xmpp-parsers/src/mam.rs b/xmpp-parsers/src/mam.rs index 71212ac0..e9fa12bf 100644 --- a/xmpp-parsers/src/mam.rs +++ b/xmpp-parsers/src/mam.rs @@ -313,8 +313,8 @@ mod tests { .parse() .unwrap(); let prefs = Prefs::try_from(elem).unwrap(); - assert_eq!(prefs.always, vec!()); - assert_eq!(prefs.never, vec!()); + assert!(prefs.always.is_empty()); + assert!(prefs.never.is_empty()); let elem: Element = r#" @@ -325,8 +325,8 @@ mod tests { .parse() .unwrap(); let prefs = Prefs::try_from(elem).unwrap(); - assert_eq!(prefs.always, vec!()); - assert_eq!(prefs.never, vec!()); + assert!(prefs.always.is_empty()); + assert!(prefs.never.is_empty()); } #[test]