xmpp-parsers/mam: Use .is_empty() instead of Vec’s PartialEq.
This commit is contained in:
parent
63d940b339
commit
71b995731a
1 changed files with 4 additions and 4 deletions
|
@ -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#"
|
||||
<prefs xmlns='urn:xmpp:mam:2' default='roster'>
|
||||
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue