about summary refs log tree commit diff
path: root/src/libstd/num
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-30 21:14:13 -0700
committerbors <bors@rust-lang.org>2013-06-30 21:14:13 -0700
commit07feeb95c5e73c5d871c7e365cf4a7138774d449 (patch)
tree8b7f2a06b1a86a57dc3bc00bb53da5e96b1a243b /src/libstd/num
parentd5c5ce3f8d07ba7f9059727a790ce19f7a1599b7 (diff)
parentc0a20d2929a7c0d6af0de899198df4f26453d877 (diff)
downloadrust-07feeb95c5e73c5d871c7e365cf4a7138774d449.tar.gz
rust-07feeb95c5e73c5d871c7e365cf4a7138774d449.zip
auto merge of #7487 : huonw/rust/vec-kill, r=cmr
Continuation of #7430.

I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
Diffstat (limited to 'src/libstd/num')
-rw-r--r--src/libstd/num/strconv.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs
index 1b1b82190d5..f6dff4267b7 100644
--- a/src/libstd/num/strconv.rs
+++ b/src/libstd/num/strconv.rs
@@ -18,8 +18,7 @@ use char;
 use str;
 use str::StrSlice;
 use kinds::Copy;
-use vec;
-use vec::{CopyableVector, ImmutableVector};
+use vec::{CopyableVector, ImmutableVector, MutableVector};
 use vec::OwnedVector;
 use num::{NumCast, Zero, One, cast, pow_with_uint, Integer};
 use num::{Round, Float, FPNaN, FPInfinite};
@@ -292,7 +291,7 @@ pub fn float_to_str_bytes_common<T:NumCast+Zero+One+Eq+Ord+Float+Round+
         _ => ()
     }
 
-    vec::reverse(buf);
+    buf.reverse();
 
     // Remember start of the fractional digits.
     // Points one beyond end of buf if none get generated,