diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-05-03 16:13:35 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-05-08 12:06:21 -0700 |
| commit | 21dae8e1e0916afd2f789a2f1affdfe580d9ca0e (patch) | |
| tree | aeb73142fbdb6e19ce00251f9f75311d2862c423 /src/libstd/num | |
| parent | 4af84313d67e3062e43c0123093278b1887cac64 (diff) | |
| download | rust-21dae8e1e0916afd2f789a2f1affdfe580d9ca0e.tar.gz rust-21dae8e1e0916afd2f789a2f1affdfe580d9ca0e.zip | |
More fallout from removing FromIterator on ~[T]
A few methods in slice that used to return ~[T] now return Vec<T>: - VectorVector.concat/connect_vec() returns Vec<T> - slice::unzip() returns (Vec<T>, Vec<U>) - ImmutableCloneableVector.partitioned() returns (Vec<T>, Vec<T>) - OwnedVector.partition() returns (Vec<T>, Vec<T>)
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/int_macros.rs | 2 | ||||
| -rw-r--r-- | src/libstd/num/uint_macros.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/int_macros.rs b/src/libstd/num/int_macros.rs index 8a7bea46585..f7813c31d4d 100644 --- a/src/libstd/num/int_macros.rs +++ b/src/libstd/num/int_macros.rs @@ -83,7 +83,7 @@ impl ToStrRadix for $T { }); // We know we generated valid utf-8, so we don't need to go through that // check. - unsafe { str::raw::from_utf8_owned(buf.move_iter().collect()) } + unsafe { str::raw::from_utf8(buf.as_slice()).to_owned() } } } diff --git a/src/libstd/num/uint_macros.rs b/src/libstd/num/uint_macros.rs index 3e64c171613..814ea0e4274 100644 --- a/src/libstd/num/uint_macros.rs +++ b/src/libstd/num/uint_macros.rs @@ -84,7 +84,7 @@ impl ToStrRadix for $T { }); // We know we generated valid utf-8, so we don't need to go through that // check. - unsafe { str::raw::from_utf8_owned(buf.move_iter().collect()) } + unsafe { str::raw::from_utf8(buf.as_slice()).to_owned() } } } |
