Skip to content

Commit

Permalink
Merge #715
Browse files Browse the repository at this point in the history
715: remove unnecessary 'move' keyword r=taiki-e a=qy3u

The newer 'f' only captures a mut reference of the former 'f' to make itself becomes a FnMut.So, the 'move' keyword here seems unnecessary.

Co-authored-by: yuqing <[email protected]>
  • Loading branch information
bors[bot] and qy3u authored Jun 21, 2021
2 parents 5ee501f + a649cfc commit 311124c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crossbeam-channel/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Context {
}

let mut f = Some(f);
let mut f = move |cx: &Context| -> R {
let mut f = |cx: &Context| -> R {
let f = f.take().unwrap();
f(cx)
};
Expand Down

0 comments on commit 311124c

Please sign in to comment.