try to reduce bajillion warnings

This commit is contained in:
Alexis
2015-02-19 12:57:25 -05:00
parent 522d09dfec
commit 97aa34046f
18 changed files with 58 additions and 51 deletions

View File

@@ -869,12 +869,12 @@ mod tests {
#[test]
fn split() {
let mut buf = Cursor::new(b"12");
let buf = Cursor::new(b"12");
let mut s = buf.split(b'3');
assert_eq!(s.next(), Some(Ok(vec![b'1', b'2'])));
assert_eq!(s.next(), None);
let mut buf = Cursor::new(b"1233");
let buf = Cursor::new(b"1233");
let mut s = buf.split(b'3');
assert_eq!(s.next(), Some(Ok(vec![b'1', b'2'])));
assert_eq!(s.next(), Some(Ok(vec![])));
@@ -902,12 +902,12 @@ mod tests {
#[test]
fn lines() {
let mut buf = Cursor::new(b"12");
let buf = Cursor::new(b"12");
let mut s = buf.lines();
assert_eq!(s.next(), Some(Ok("12".to_string())));
assert_eq!(s.next(), None);
let mut buf = Cursor::new(b"12\n\n");
let buf = Cursor::new(b"12\n\n");
let mut s = buf.lines();
assert_eq!(s.next(), Some(Ok("12".to_string())));
assert_eq!(s.next(), Some(Ok(String::new())));