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

@@ -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