Skip to content

Commit 14d59af

Browse files
committed
Fix vec::mut_slice
1 parent e946b4f commit 14d59af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/vec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,16 +2347,16 @@ impl<T:Eq> OwnedEqVector<T> for ~[T] {
23472347
}
23482348

23492349
pub trait MutableVector<'self, T> {
2350-
fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T];
2350+
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T];
23512351

23522352
unsafe fn unsafe_mut_ref(&self, index: uint) -> *mut T;
23532353
unsafe fn unsafe_set(&self, index: uint, val: T);
23542354
}
23552355

23562356
impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
23572357
#[inline]
2358-
fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T] {
2359-
mut_slice(*self, start, end)
2358+
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T] {
2359+
mut_slice(self, start, end)
23602360
}
23612361

23622362
#[inline(always)]

0 commit comments

Comments
 (0)