Make remaining moves explicit in libstd
This commit is contained in:
parent
73eb894305
commit
9869d071d1
18 changed files with 68 additions and 68 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue