Skip to content

Commit c3ffdac

Browse files
committed
Sorten paths to crate::syntax::ast::*
1 parent 5ad2c95 commit c3ffdac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clippy_lints/src/strings.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::syntax::source_map::Spanned;
55
use crate::utils::{
66
get_parent_expr, is_allowed, match_type, paths, span_lint, span_lint_and_sugg, walk_ptrs_ty, SpanlessEq,
77
};
8+
use crate::syntax::ast;
89

910
/// **What it does:** Checks for string appends of the form `x = x + y` (without
1011
/// `let`!).
@@ -154,8 +155,8 @@ impl LintPass for StringLitAsBytes {
154155
}
155156

156157
impl EarlyLintPass for StringLitAsBytes {
157-
fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &crate::syntax::ast::Expr) {
158-
use crate::syntax::ast::{ExprKind, LitKind};
158+
fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &ast::Expr) {
159+
use self::ast::{ExprKind, LitKind};
159160
use crate::utils::{in_macro, snippet};
160161

161162
if let ExprKind::MethodCall(ref path, ref args) = e.node {

0 commit comments

Comments
 (0)