"transmute from an integer to a pointer",
|diag| {
if let Some(arg) = sugg::Sugg::hir_opt(cx, arg) {
- diag.span_suggestion(
- e.span,
- "try",
- arg.as_ty(&to_ty.to_string()),
- Applicability::Unspecified,
- );
+ diag.span_suggestion(e.span, "try", arg.as_ty(&to_ty.to_string()), Applicability::Unspecified);
}
},
);