about summary refs log tree commit diff
path: root/src/libgetopts
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-11-03 10:22:34 -0800
committerBrian Anderson <banderson@mozilla.com>2014-11-21 13:18:08 -0800
commit76ddd2b1547dd461d0487233a0a19674292c976e (patch)
treeaea21bde4cc3ff6961c39be9fc5a10f45438f821 /src/libgetopts
parentd6ee804b632ee03679d6de682841fc7785ef4fbb (diff)
unicode: Add stability attributes to u_char
Free functions deprecated. UnicodeChar experimental pending
final decisions about prelude.
Diffstat (limited to 'src/libgetopts')
-rw-r--r--src/libgetopts/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs
index c4d712cb673..a182f582b5f 100644
--- a/src/libgetopts/lib.rs
+++ b/src/libgetopts/lib.rs
@@ -886,7 +886,7 @@ fn each_split_within<'a>(ss: &'a str, lim: uint, it: |&'a str| -> bool)
     }
 
     let machine: |&mut bool, (uint, char)| -> bool = |cont, (i, c)| {
-        let whitespace = if ::std::char::is_whitespace(c) { Ws }       else { Cr };
+        let whitespace = if c.is_whitespace() { Ws }       else { Cr };
         let limit      = if (i - slice_start + 1) <= lim  { UnderLim } else { OverLim };
 
         state = match (state, whitespace, limit) {