Skip to content

Commit b60c887

Browse files
authored
Merge pull request #2987 from aaudiber/address-build-warning
Address build warning
2 parents 6749b2d + 3851c0e commit b60c887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ fn lint_chars_last_cmp_with_unwrap<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, info: &
18851885
}
18861886

18871887
/// lint for length-1 `str`s for methods in `PATTERN_METHODS`
1888-
fn lint_single_char_pattern<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr, arg: &'tcx hir::Expr) {
1888+
fn lint_single_char_pattern<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, _expr: &'tcx hir::Expr, arg: &'tcx hir::Expr) {
18891889
if let Some((Constant::Str(r), _)) = constant(cx, cx.tables, arg) {
18901890
if r.len() == 1 {
18911891
let c = r.chars().next().unwrap();

0 commit comments

Comments
 (0)