Skip to content

Commit c9ef27e

Browse files
Update clippy_lints/src/casts/fn_to_numeric_cast_any.rs
Co-authored-by: Cameron Steffen <[email protected]>
1 parent c4cfd40 commit c9ef27e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/casts/fn_to_numeric_cast_any.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &Expr<'_>,
1717
match cast_from.kind() {
1818
ty::FnDef(..) | ty::FnPtr(_) => {
1919
let mut applicability = Applicability::MaybeIncorrect;
20-
let from_snippet = snippet_with_applicability(cx, cast_expr.span, "x", &mut applicability);
20+
let from_snippet = snippet_with_applicability(cx, cast_expr.span, "..", &mut applicability);
2121

2222
span_lint_and_sugg(
2323
cx,

0 commit comments

Comments
 (0)