Skip to content

Commit ade2924

Browse files
committed
use a more simple fn
1 parent dcfb973 commit ade2924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ci/date-check/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn collect_dates_from_file(date_regexes: &[Regex], text: &str) -> Vec<(usize, Da
7272
.collect();
7373
output.extend(results);
7474
}
75-
output.sort_by(|a, b| a.0.cmp(&b.0));
75+
output.sort_by_key(|a| a.0);
7676
output
7777
}
7878

0 commit comments

Comments
 (0)