Skip to content

Commit 391d53d

Browse files
committed
Add hidden lifetime parameters to fix warning
1 parent c0ab8b2 commit 391d53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CastPass {
10761076
}
10771077
}
10781078

1079-
fn lint_fn_to_numeric_cast(cx: &LateContext<'_, '_>, expr: &Expr, cast_expr: &Expr, cast_from: Ty, cast_to: Ty) {
1079+
fn lint_fn_to_numeric_cast(cx: &LateContext<'_, '_>, expr: &Expr, cast_expr: &Expr, cast_from: Ty<'_>, cast_to: Ty<'_>) {
10801080
match cast_from.sty {
10811081
ty::FnDef(..) | ty::FnPtr(_) => {
10821082
let from_snippet = snippet(cx, cast_expr.span, "x");

0 commit comments

Comments
 (0)