diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-11-03 10:22:34 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-11-21 13:18:08 -0800 |
| commit | 76ddd2b1547dd461d0487233a0a19674292c976e (patch) | |
| tree | aea21bde4cc3ff6961c39be9fc5a10f45438f821 /src/libfmt_macros | |
| parent | d6ee804b632ee03679d6de682841fc7785ef4fbb (diff) | |
| download | rust-76ddd2b1547dd461d0487233a0a19674292c976e.tar.gz rust-76ddd2b1547dd461d0487233a0a19674292c976e.zip | |
unicode: Add stability attributes to u_char
Free functions deprecated. UnicodeChar experimental pending final decisions about prelude.
Diffstat (limited to 'src/libfmt_macros')
| -rw-r--r-- | src/libfmt_macros/lib.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs index 134819ad027..ed86ad52bb5 100644 --- a/src/libfmt_macros/lib.rs +++ b/src/libfmt_macros/lib.rs @@ -26,7 +26,6 @@ pub use self::Alignment::*; pub use self::Flag::*; pub use self::Count::*; -use std::char; use std::str; use std::string; @@ -221,7 +220,7 @@ impl<'a> Parser<'a> { fn ws(&mut self) { loop { match self.cur.clone().next() { - Some((_, c)) if char::is_whitespace(c) => { self.cur.next(); } + Some((_, c)) if c.is_whitespace() => { self.cur.next(); } Some(..) | None => { return } } } @@ -261,7 +260,7 @@ impl<'a> Parser<'a> { Some(i) => { ArgumentIs(i) } None => { match self.cur.clone().next() { - Some((_, c)) if char::is_alphabetic(c) => { + Some((_, c)) if c.is_alphabetic() => { ArgumentNamed(self.word()) } _ => ArgumentNext @@ -384,7 +383,7 @@ impl<'a> Parser<'a> { /// characters. fn word(&mut self) -> &'a str { let start = match self.cur.clone().next() { - Some((pos, c)) if char::is_XID_start(c) => { + Some((pos, c)) if c.is_XID_start() => { self.cur.next(); pos } @@ -393,7 +392,7 @@ impl<'a> Parser<'a> { let mut end; loop { match self.cur.clone().next() { - Some((_, c)) if char::is_XID_continue(c) => { + Some((_, c)) if c.is_XID_continue() => { self.cur.next(); } Some((pos, _)) => { end = pos; break } |
