Fix type ambiguity in IO tests
This commit is contained in:
parent
c00faa0458
commit
7d5ce89dad
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue