diff options
| author | Graydon Hoare <[email protected]> | 2010-08-05 10:10:39 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-08-05 10:10:39 -0700 |
| commit | 935b4347e286b0022ae6f38b2875df6f05c55fa3 (patch) | |
| tree | da099f73a9db22b1fbd1aa52dbc8d2741a2dde88 /src/lib/_str.rs | |
| parent | Move 'as' precedence up to just above relational; support indexing str and ve... (diff) | |
| download | rust-935b4347e286b0022ae6f38b2875df6f05c55fa3.tar.xz rust-935b4347e286b0022ae6f38b2875df6f05c55fa3.zip | |
Mop up workarounds in stdlib no longer required as issue #93 is closed.
Diffstat (limited to 'src/lib/_str.rs')
| -rw-r--r-- | src/lib/_str.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/_str.rs b/src/lib/_str.rs index 8eed9a38..7d1a2dbd 100644 --- a/src/lib/_str.rs +++ b/src/lib/_str.rs @@ -16,8 +16,7 @@ fn is_ascii(str s) -> bool { let uint i = len(s); while (i > 0u) { i -= 1u; - // FIXME (issue #94) - if ((s.(i as int) & 0x80u8) != 0u8) { + if ((s.(i) & 0x80u8) != 0u8) { ret false; } } @@ -38,7 +37,7 @@ fn buf(str s) -> sbuf { fn bytes(&str s) -> vec[u8] { fn ith(str s, uint i) -> u8 { - ret s.(i as int); // FIXME (issue #94) + ret s.(i); } ret _vec.init_fn[u8](bind ith(s, _), _str.len(s)); } |