fix(rustup): update to rust beta

This commit is contained in:
Sean McArthur
2015-04-02 12:32:46 -07:00
parent b4aeeb347c
commit 0f5858f379
12 changed files with 79 additions and 74 deletions

View File

@@ -115,7 +115,7 @@ mod tests {
let mut stream = BufReader::new(mock);
let req = Request::new(&mut stream, sock("127.0.0.1:80")).unwrap();
assert_eq!(read_to_string(req), Ok("".to_string()));
assert_eq!(read_to_string(req).unwrap(), "".to_string());
}
#[test]
@@ -132,7 +132,7 @@ mod tests {
let mut stream = BufReader::new(mock);
let req = Request::new(&mut stream, sock("127.0.0.1:80")).unwrap();
assert_eq!(read_to_string(req), Ok("".to_string()));
assert_eq!(read_to_string(req).unwrap(), "".to_string());
}
#[test]
@@ -149,7 +149,7 @@ mod tests {
let mut stream = BufReader::new(mock);
let req = Request::new(&mut stream, sock("127.0.0.1:80")).unwrap();
assert_eq!(read_to_string(req), Ok("".to_string()));
assert_eq!(read_to_string(req).unwrap(), "".to_string());
}
#[test]
@@ -190,7 +190,7 @@ mod tests {
None => panic!("Transfer-Encoding: chunked expected!"),
};
// The content is correctly read?
assert_eq!(read_to_string(req), Ok("qwert".to_string()));
assert_eq!(read_to_string(req).unwrap(), "qwert".to_string());
}
/// Tests that when a chunk size is not a valid radix-16 number, an error
@@ -262,7 +262,7 @@ mod tests {
let req = Request::new(&mut stream, sock("127.0.0.1:80")).unwrap();
assert_eq!(read_to_string(req), Ok("1".to_string()));
assert_eq!(read_to_string(req).unwrap(), "1".to_string());
}
}