Skip to content

Commit a7641f1

Browse files
committed
address review comments
1 parent a7aec3f commit a7641f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/librustc_lint/unused.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ impl UnusedParens {
392392
avoid_or: bool,
393393
avoid_mut: bool,
394394
) {
395-
use ast::{PatKind, BindingMode::ByValue, Mutability::Mut};
395+
use ast::{PatKind, BindingMode, Mutability};
396396

397397
if let PatKind::Paren(inner) = &value.kind {
398398
match inner.kind {
@@ -404,7 +404,7 @@ impl UnusedParens {
404404
// Avoid `p0 | .. | pn` if we should.
405405
PatKind::Or(..) if avoid_or => return,
406406
// Avoid `mut x` and `mut x @ p` if we should:
407-
PatKind::Ident(ByValue(Mut), ..) if avoid_mut => return,
407+
PatKind::Ident(BindingMode::ByValue(Mutability::Mut), ..) if avoid_mut => return,
408408
// Otherwise proceed with linting.
409409
_ => {}
410410
}

0 commit comments

Comments
 (0)