Skip to content

Commit a39f184

Browse files
oli-obkestebank
andauthored
Use dedup instead of dedup_by
Co-Authored-By: estebank <[email protected]>
1 parent bec5b66 commit a39f184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/method/suggest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
428428
.map(|p| format!("`{} : {}`", p.self_ty(), p))
429429
.collect::<Vec<_>>();
430430
bound_list.sort();
431-
bound_list.dedup_by(|a, b| a == b); // #35677
431+
bound_list.dedup(); // #35677
432432
let bound_list = bound_list.join("\n");
433433
err.note(&format!("the method `{}` exists but the following trait bounds \
434434
were not satisfied:\n{}",

0 commit comments

Comments
 (0)