Slice was changed to AsSlice in libstd
This commit is contained in:
		| @@ -32,8 +32,8 @@ fn main() { | |||||||
|     }; |     }; | ||||||
|  |  | ||||||
|     let mut res = req |     let mut res = req | ||||||
|         .start().unwrap() |         .start().unwrap() // failure: Error writing Headers | ||||||
|         .send().unwrap(); |         .send().unwrap(); // failure: Error reading Response head. | ||||||
|  |  | ||||||
|     println!("Response: {}", res.status); |     println!("Response: {}", res.status); | ||||||
|     println!("{}", res.headers); |     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] { |     fn as_slice(&self) -> &[u8] { | ||||||
|         LINE_ENDING |         LINE_ENDING | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| /// Determines if byte is a token char. | /// Determines if byte is a token char. | ||||||
| /// | /// | ||||||
| /// > ```notrust | /// > ```notrust | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user