-use crate::utils::{higher, in_macro, match_qpath, span_lint_and_sugg, SpanlessEq};
+use clippy_utils::diagnostics::span_lint_and_sugg;
+use clippy_utils::{in_macro, match_qpath, SpanlessEq};
// Check if the conditional expression is a binary operation
if let ExprKind::Binary(ref cond_op, ref cond_left, ref cond_right) = cond.kind;
// Check if the conditional expression is a binary operation
if let ExprKind::Binary(ref cond_op, ref cond_left, ref cond_right) = cond.kind;
if let Some(target) = subtracts_one(cx, e);
// Extracting out the variable name
if let Some(target) = subtracts_one(cx, e);
// Extracting out the variable name
- format!("{} = {}.saturating_sub({});", var_name, var_name, 1.to_string()),
+ format!("{} = {}.saturating_sub({});", var_name, var_name, '1'),