Skip to content

Commit 9fd7b62

Browse files
committed
use iter().cloned()
1 parent 3b50885 commit 9fd7b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/job_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn sort_benchmark_requests(done: &HashSet<String>, request_queue: &mut [Benchmar
4242
// A topological sort, where each "level" is additionally altered such that
4343
// try commits come first, and then sorted by PR # (as a rough heuristic for
4444
// earlier requests).
45-
let mut done: HashSet<String> = done.iter().map(|x| x.clone()).collect();
45+
let mut done: HashSet<String> = done.iter().cloned().collect();
4646

4747
// Ensure all the items are ready to be sorted, if they are not this is
4848
// undefined behaviour

0 commit comments

Comments
 (0)