Slice was changed to AsSlice in libstd
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user