Slice was changed to AsSlice in libstd

This commit is contained in:
Sean McArthur
2014-10-13 16:48:26 -07:00
parent 2f755a5694
commit e6329af74e
2 changed files with 3 additions and 5 deletions

View File

@@ -32,8 +32,8 @@ fn main() {
};
let mut res = req
.start().unwrap()
.send().unwrap();
.start().unwrap() // failure: Error writing Headers
.send().unwrap(); // failure: Error reading Response head.
println!("Response: {}", res.status);
println!("{}", res.headers);

View File

@@ -221,14 +221,12 @@ impl fmt::Show for LineEnding {
}
}
impl Slice<u8> for LineEnding {
impl AsSlice<u8> for LineEnding {
fn as_slice(&self) -> &[u8] {
LINE_ENDING
}
}
/// Determines if byte is a token char.
///
/// > ```notrust