diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-06-26 13:55:56 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-06-30 16:01:49 -0700 |
| commit | a3382b6f26e582210a3b649c9a71badaef0530bf (patch) | |
| tree | bd30506542a14a132b09aae154417c7cc9312498 /src/libcore/uint-template.rs | |
| parent | 8b2491160d71aa7a84ed822b85e9b3eff6097225 (diff) | |
Eliminate usages of old sugared call syntax
Diffstat (limited to 'src/libcore/uint-template.rs')
| -rw-r--r-- | src/libcore/uint-template.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index 8e984f880f6..8e63bc61a7d 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -131,8 +131,8 @@ Convert to a string in a given base Fails if `radix` < 2 or `radix` > 16 "] fn to_str(num: T, radix: uint) -> str { - to_str_bytes(false, num, radix) {|slice| - vec::unpack_slice(slice) {|p, len| + do to_str_bytes(false, num, radix) {|slice| + do vec::unpack_slice(slice) {|p, len| unsafe { str::unsafe::from_buf_len(p, len) } } } @@ -177,7 +177,7 @@ fn to_str_bytes<U>(neg: bool, num: T, radix: uint, // in-bounds, no extra cost. unsafe { - vec::unpack_slice(buf) {|p, len| + do vec::unpack_slice(buf) {|p, len| let mp = p as *mut u8; let mut i = len; let mut n = num; |
