提交 14d59af0 编写于 作者: J june0cho

Fix vec::mut_slice

上级 e946b4fa
......@@ -2347,7 +2347,7 @@ fn dedup(&mut self) {
}
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)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册