1
Fork 0

Make remaining moves explicit in libstd

This commit is contained in:
Tim Chevalier 2012-09-10 17:50:48 -07:00
parent 73eb894305
commit 9869d071d1
18 changed files with 68 additions and 68 deletions

View file

@ -46,8 +46,8 @@ impl<T> Cell<T> {
fn with_ref<R>(op: fn(v: &T) -> R) -> R {
let v = self.take();
let r = op(&v);
self.put_back(v);
return move r;
self.put_back(move v);
move r
}
}