From 71b995731a4cd96d10cf115b51481e29c340921e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 10 Dec 2020 20:44:54 +0100 Subject: [PATCH] =?UTF-8?q?xmpp-parsers/mam:=20Use=20.is=5Fempty()=20inste?= =?UTF-8?q?ad=20of=20Vec=E2=80=99s=20PartialEq.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xmpp-parsers/src/mam.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]