diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 21:03:16 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:02:55 +1000 |
| commit | f632f466148c7e5571393bb2a24cd628703a60fa (patch) | |
| tree | 6a5fa9687b4df16bf4fe0e6ff564c15f61c4a452 /src/libextra | |
| parent | 1553874149c3c37b94d75e9122092b131ba74c77 (diff) | |
| download | rust-f632f466148c7e5571393bb2a24cd628703a60fa.tar.gz rust-f632f466148c7e5571393bb2a24cd628703a60fa.zip | |
std: convert str::trim* to methods.
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/num/bigint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/num/bigint.rs b/src/libextra/num/bigint.rs index 1411079d52f..0294b595cfd 100644 --- a/src/libextra/num/bigint.rs +++ b/src/libextra/num/bigint.rs @@ -524,7 +524,7 @@ impl ToStrRadix for BigUint { let s = uint::to_str_radix(*n as uint, radix); str::from_chars(vec::from_elem(l - s.len(), '0')) + s })); - str::trim_left_chars(s, ['0']).to_owned() + s.trim_left_chars(['0']).to_owned() } } } |
