Demode dvec
This commit is contained in:
parent
e48429abae
commit
fdc6062136
|
@ -130,7 +130,7 @@ impl<A> DVec<A> {
|
||||||
* and return a new vector to replace it with.
|
* and return a new vector to replace it with.
|
||||||
*/
|
*/
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn swap_mut(f: &fn(-v: ~[mut A]) -> ~[mut A]) {
|
fn swap_mut(f: &fn(+v: ~[mut A]) -> ~[mut A]) {
|
||||||
do self.swap |v| {
|
do self.swap |v| {
|
||||||
vec::from_mut(f(vec::to_mut(move v)))
|
vec::from_mut(f(vec::to_mut(move v)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue