Skip to content

Commit dd67407

Browse files
committed
fix copy-paste error
1 parent 9407fa5 commit dd67407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/redundant_slicing.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use if_chain::if_chain;
22
use rustc_errors::Applicability;
33
use rustc_hir::{Expr, ExprKind, LangItem};
4-
use rustc_lint::{LateContext, LateLintPass};
4+
use rustc_lint::{LateContext, LateLintPass, LintContext};
55
use rustc_middle::{lint::in_external_macro, ty::TyS};
66
use rustc_session::{declare_lint_pass, declare_tool_lint};
77

@@ -39,7 +39,7 @@ declare_lint_pass!(RedundantSlicing => [REDUNDANT_SLICING]);
3939

4040
impl LateLintPass<'_> for RedundantSlicing {
4141
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
42-
if in_external_macro(cx.sess, expr.span) {
42+
if in_external_macro(cx.sess(), expr.span) {
4343
return;
4444
}
4545

0 commit comments

Comments
 (0)