Skip to content

Commit a50c339

Browse files
committed
replace qualified path with use
1 parent ea7672a commit a50c339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/transmute/transmute_int_to_non_zero.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::TRANSMUTE_INT_TO_NON_ZERO;
22
use clippy_utils::diagnostics::span_lint_and_sugg;
3-
use clippy_utils::sugg;
3+
use clippy_utils::sugg::Sugg;
44
use rustc_errors::Applicability;
55
use rustc_hir::Expr;
66
use rustc_lint::LateContext;
@@ -22,7 +22,7 @@ pub(super) fn check<'tcx>(
2222
&& let int_ty = substs.type_at(0)
2323
&& from_ty == int_ty
2424
{
25-
let arg = sugg::Sugg::hir(cx, arg, "..");
25+
let arg = Sugg::hir(cx, arg, "..");
2626
span_lint_and_sugg(
2727
cx,
2828
TRANSMUTE_INT_TO_NON_ZERO,

0 commit comments

Comments
 (0)