We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4cfd40 commit c9ef27eCopy full SHA for c9ef27e
clippy_lints/src/casts/fn_to_numeric_cast_any.rs
@@ -17,7 +17,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, cast_expr: &Expr<'_>,
17
match cast_from.kind() {
18
ty::FnDef(..) | ty::FnPtr(_) => {
19
let mut applicability = Applicability::MaybeIncorrect;
20
- let from_snippet = snippet_with_applicability(cx, cast_expr.span, "x", &mut applicability);
+ let from_snippet = snippet_with_applicability(cx, cast_expr.span, "..", &mut applicability);
21
22
span_lint_and_sugg(
23
cx,
0 commit comments