summary refs log tree commit diff
path: root/src/libstd/vec.rs
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2014-01-14 16:33:08 -0500
committerDaniel Micay <danielmicay@gmail.com>2014-01-14 22:01:44 -0500
commit77758f0b5e4ea672f3a5671902011e879ed6dac5 (patch)
tree85825fb0f5f7f725779343c3939db57a25d72866 /src/libstd/vec.rs
parent6809b172e0dee6f197e4ae30af0d8162e92d5225 (diff)
downloadrust-77758f0b5e4ea672f3a5671902011e879ed6dac5.tar.gz
rust-77758f0b5e4ea672f3a5671902011e879ed6dac5.zip
add implementation of `Repr` for `~[T]`
Diffstat (limited to 'src/libstd/vec.rs')
-rw-r--r--src/libstd/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs
index df4d82678d3..797582e57f4 100644
--- a/src/libstd/vec.rs
+++ b/src/libstd/vec.rs
@@ -806,7 +806,7 @@ impl<T> Container for ~[T] {
     /// Returns the length of a vector
     #[inline]
     fn len(&self) -> uint {
-        self.repr().len
+        self.as_slice().len()
     }
 }