From 7d5ce89dadb8058f9c7144d890c33ce5aacb9c0d Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Mon, 19 Aug 2024 15:13:23 +0200 Subject: [PATCH] Fix type ambiguity in IO tests --- io/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io/src/lib.rs b/io/src/lib.rs index 1fc5dd53e..abf43727f 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -349,8 +349,7 @@ mod tests { // checks we can attempt to read from a now-empty reader. let fill = BufRead::fill_buf(&mut slice).unwrap(); - assert_eq!(fill.len(), 0); - assert_eq!(fill, &[]); + assert!(fill.is_empty()); } #[test]