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.
use
1 parent ea7672a commit a50c339Copy full SHA for a50c339
clippy_lints/src/transmute/transmute_int_to_non_zero.rs
@@ -1,6 +1,6 @@
1
use super::TRANSMUTE_INT_TO_NON_ZERO;
2
use clippy_utils::diagnostics::span_lint_and_sugg;
3
-use clippy_utils::sugg;
+use clippy_utils::sugg::Sugg;
4
use rustc_errors::Applicability;
5
use rustc_hir::Expr;
6
use rustc_lint::LateContext;
@@ -22,7 +22,7 @@ pub(super) fn check<'tcx>(
22
&& let int_ty = substs.type_at(0)
23
&& from_ty == int_ty
24
{
25
- let arg = sugg::Sugg::hir(cx, arg, "..");
+ let arg = Sugg::hir(cx, arg, "..");
26
span_lint_and_sugg(
27
cx,
28
TRANSMUTE_INT_TO_NON_ZERO,
0 commit comments