From 63d940b339dac79d1877b08d84962b983b593973 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 10 Dec 2020 20:36:54 +0100 Subject: [PATCH] =?UTF-8?q?xmpp-parsers/blocking:=20Use=20.is=5Fempty()=20?= =?UTF-8?q?instead=20of=20Vec=E2=80=99s=20PartialEq.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xmpp-parsers/src/blocking.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmpp-parsers/src/blocking.rs b/xmpp-parsers/src/blocking.rs index 8e2d8a69..246a715c 100644 --- a/xmpp-parsers/src/blocking.rs +++ b/xmpp-parsers/src/blocking.rs @@ -126,15 +126,15 @@ mod tests { let result_elem = elem.clone(); let result = BlocklistResult::try_from(result_elem).unwrap(); - assert_eq!(result.items, vec!()); + assert!(result.items.is_empty()); let elem: Element = "".parse().unwrap(); let block = Block::try_from(elem).unwrap(); - assert_eq!(block.items, vec!()); + assert!(block.items.is_empty()); let elem: Element = "".parse().unwrap(); let unblock = Unblock::try_from(elem).unwrap(); - assert_eq!(unblock.items, vec!()); + assert!(unblock.items.is_empty()); } #[test]