We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e946b4f commit 14d59afCopy full SHA for 14d59af
src/libstd/vec.rs
@@ -2347,16 +2347,16 @@ impl<T:Eq> OwnedEqVector<T> for ~[T] {
2347
}
2348
2349
pub trait MutableVector<'self, T> {
2350
- fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T];
+ fn mut_slice(self, start: uint, end: uint) -> &'self mut [T];
2351
2352
unsafe fn unsafe_mut_ref(&self, index: uint) -> *mut T;
2353
unsafe fn unsafe_set(&self, index: uint, val: T);
2354
2355
2356
impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
2357
#[inline]
2358
- fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T] {
2359
- mut_slice(*self, start, end)
+ fn mut_slice(self, start: uint, end: uint) -> &'self mut [T] {
+ mut_slice(self, start, end)
2360
2361
2362
#[inline(always)]
0 commit comments