diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:48:07 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:48:07 -0700 |
| commit | d2ea0315e09cbd495a67c9e3d5053b57e2b5a8b7 (patch) | |
| tree | d39de6be5866c0f0f37f9f3219b8217c873d8b52 /src/libnum | |
| parent | c0c6c895890770d7029324fd9b592f42e0564e8b (diff) | |
| download | rust-d2ea0315e09cbd495a67c9e3d5053b57e2b5a8b7.tar.gz rust-d2ea0315e09cbd495a67c9e3d5053b57e2b5a8b7.zip | |
Revert "Use slice syntax instead of slice_to, etc."
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
Diffstat (limited to 'src/libnum')
| -rw-r--r-- | src/libnum/bigint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnum/bigint.rs b/src/libnum/bigint.rs index c5722419f3e..efa3402073f 100644 --- a/src/libnum/bigint.rs +++ b/src/libnum/bigint.rs @@ -735,7 +735,7 @@ impl BigUint { let mut power: BigUint = One::one(); loop { let start = cmp::max(end, unit_len) - unit_len; - match uint::parse_bytes(buf[start..end], radix) { + match uint::parse_bytes(buf.slice(start, end), radix) { Some(d) => { let d: Option<BigUint> = FromPrimitive::from_uint(d); match d { @@ -1406,7 +1406,7 @@ impl BigInt { sign = Minus; start = 1; } - return BigUint::parse_bytes(buf[start..], radix) + return BigUint::parse_bytes(buf.slice(start, buf.len()), radix) .map(|bu| BigInt::from_biguint(sign, bu)); } |
