Skip to content

Commit 7dc9748

Browse files
committed
remove is_local check since getting the def_id directly makes it unnecessary
1 parent 6c3e459 commit 7dc9748

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/derive.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ fn check_ord_pord<'tcx>(
215215
if let Some(pord_trait_def_id) = cx.tcx.lang_items().partial_ord_trait();
216216
if let Some(def_id) = &trait_ref.trait_def_id();
217217
if *def_id == ord_trait_def_id;
218-
if !def_id.is_local();
219218
then {
220219
// Look for the PartialOrd implementations for `ty`
221220
cx.tcx.for_each_relevant_impl(pord_trait_def_id, ty, |impl_id| {

0 commit comments

Comments
 (0)