Skip to content

Commit

Permalink
Fix unnecessary_sort_by.rs that fails the dogfood test
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Nak committed Feb 20, 2021
1 parent d230389 commit d646aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/unnecessary_sort_by.rs
Expand Up @@ -212,10 +212,10 @@ fn detect_lint(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<LintTrigger> {
if !expr_borrows(cx, left_expr) {
return Some(LintTrigger::SortByKey(SortByKeyDetection {
vec_name,
unstable,
closure_arg,
closure_body,
reverse
reverse,
unstable,
}));
}
}
Expand Down

0 comments on commit d646aa2

Please sign in to comment.