Skip to content

Commit

Permalink
no need to mut in Fn!
Browse files Browse the repository at this point in the history
  • Loading branch information
ugoa committed May 3, 2020
1 parent f9334f8 commit 0a09c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rdd/rdd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ pub trait Rdd: RddBase + 'static {
let queue = self
.map_partitions(first_k_func)
.reduce(Fn!(
move |mut queue1: BoundedPriorityQueue<Self::Item>,
move |queue1: BoundedPriorityQueue<Self::Item>,
queue2: BoundedPriorityQueue<Self::Item>|
-> BoundedPriorityQueue<Self::Item> {
queue1.merge(queue2)
Expand Down

0 comments on commit 0a09c17

Please sign in to comment.