Skip to content

Commit 22a4b16

Browse files
committed
AliasTermTy refactor: fixup clippy
1 parent 2bc5e16 commit 22a4b16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

clippy_utils/src/ty/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ fn sig_from_bounds<'tcx>(
696696
inputs = Some(i);
697697
},
698698
ty::ClauseKind::Projection(p)
699-
if Some(p.projection_term.def_id) == lang_items.fn_once_output()
699+
if Some(p.projection_term.def_id()) == lang_items.fn_once_output()
700700
&& p.projection_term.self_ty() == ty =>
701701
{
702702
if output.is_some() {
@@ -737,7 +737,7 @@ fn sig_for_projection<'tcx>(cx: &LateContext<'tcx>, ty: AliasTy<'tcx>) -> Option
737737
}
738738
inputs = Some(i);
739739
},
740-
ty::ClauseKind::Projection(p) if Some(p.projection_term.def_id) == lang_items.fn_once_output() => {
740+
ty::ClauseKind::Projection(p) if Some(p.projection_term.def_id()) == lang_items.fn_once_output() => {
741741
if output.is_some() {
742742
// Multiple different fn trait impls. Is this even allowed?
743743
return None;

0 commit comments

Comments
 (0)