fixing clippy reference

This commit is contained in:
Jose
2026-04-08 16:58:59 -04:00
parent 77ea376be3
commit 501480e15e
2 changed files with 2 additions and 2 deletions
@@ -41,7 +41,7 @@ fn needs_turbofish<'tcx>(cx: &LateContext<'tcx>, expr: &hir::Expr<'tcx>) -> bool
if !fn_return_ty
.skip_binder()
.walk()
.any(|generic| generic.as_type().is_some_and(Ty::is_impl_trait)) =>
.any(|generic| generic.as_type().is_some_and(Ty::is_opaque)) =>
{
return false;
},
@@ -207,7 +207,7 @@ fn fn_inputs_has_impl_trait_ty(cx: &LateContext<'_>, def_id: LocalDefId) -> bool
inputs.iter().any(|input| {
matches!(
input.kind(),
&ty::Alias(ty::AliasTy { kind: ty::Free{def_id} , ..}) if cx.tcx.type_of(def_id).skip_binder().is_impl_trait()
&ty::Alias(ty::AliasTy { kind: ty::Free{def_id} , ..}) if cx.tcx.type_of(def_id).skip_binder().is_opaque()
)
})
}