Fix type ambiguity in IO tests

This commit is contained in:
Martin Habovstiak 2024-08-19 15:13:23 +02:00
parent c00faa0458
commit 7d5ce89dad
1 changed files with 1 additions and 2 deletions

View File

@ -349,8 +349,7 @@ mod tests {
// checks we can attempt to read from a now-empty reader. // checks we can attempt to read from a now-empty reader.
let fill = BufRead::fill_buf(&mut slice).unwrap(); let fill = BufRead::fill_buf(&mut slice).unwrap();
assert_eq!(fill.len(), 0); assert!(fill.is_empty());
assert_eq!(fill, &[]);
} }
#[test] #[test]