about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorjune0cho <june0.cho@samsung.com>2013-05-29 14:56:21 +0900
committerjune0cho <june0.cho@samsung.com>2013-05-29 15:04:34 +0900
commit14d59af0a369f1b05fd993f612144ae8462fb606 (patch)
treef2a8ec5f6df2d702eac371edd0f01683ffc67bdb /src/libstd
parente946b4fa3f7d9a551fd8f039a2b15142d132f3fb (diff)
downloadrust-14d59af0a369f1b05fd993f612144ae8462fb606.tar.gz
rust-14d59af0a369f1b05fd993f612144ae8462fb606.zip
Fix vec::mut_slice
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/vec.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/vec.rs b/src/libstd/vec.rs
index 5b5a7afcf13..33e7b0a97c4 100644
--- a/src/libstd/vec.rs
+++ b/src/libstd/vec.rs
@@ -2347,7 +2347,7 @@ impl<T:Eq> OwnedEqVector<T> for ~[T] {
 }
 
 pub trait MutableVector<'self, T> {
-    fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T];
+    fn mut_slice(self, start: uint, end: uint) -> &'self mut [T];
 
     unsafe fn unsafe_mut_ref(&self, index: uint) -> *mut T;
     unsafe fn unsafe_set(&self, index: uint, val: T);
@@ -2355,8 +2355,8 @@ pub trait MutableVector<'self, T> {
 
 impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
     #[inline]
-    fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T] {
-        mut_slice(*self, start, end)
+    fn mut_slice(self, start: uint, end: uint) -> &'self mut [T] {
+        mut_slice(self, start, end)
     }
 
     #[inline(always)]