Fallout from deprecation

This commit is contained in:
Aaron Turon
2014-11-21 12:51:22 -08:00
parent 7ce2d9c3fa
commit 6733d8b483
3 changed files with 22 additions and 15 deletions

View File

@@ -13,6 +13,7 @@
//! Operations on ASCII strings and characters
#![unstable = "unsure about placement and naming"]
#![allow(deprecated)]
use core::kinds::Sized;
use fmt;
@@ -36,6 +37,7 @@ impl Ascii {
self.chr
}
/// Deprecated: use `as_byte` isntead.
#[deprecated = "use as_byte"]
pub fn to_byte(self) -> u8 {
self.as_byte()
@@ -48,6 +50,12 @@ impl Ascii {
self.chr as char
}
/// Deprecated: use `as_char` isntead.
#[deprecated = "use as_char"]
pub fn to_char(self) -> char {
self.as_char()
}
/// Convert to lowercase.
#[inline]
#[stable]