Skip to content

Commit cbe6607

Browse files
committed
Remove feature: crate visibility modifier
1 parent 01421e0 commit cbe6607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/ast_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ pub fn eq_defaultness(l: Defaultness, r: Defaultness) -> bool {
545545
pub fn eq_vis(l: &Visibility, r: &Visibility) -> bool {
546546
use VisibilityKind::*;
547547
match (&l.kind, &r.kind) {
548-
(Public, Public) | (Inherited, Inherited) | (Crate(_), Crate(_)) => true,
548+
(Public, Public) | (Inherited, Inherited) | (Crate, Crate) => true,
549549
(Restricted { path: l, .. }, Restricted { path: r, .. }) => eq_path(l, r),
550550
_ => false,
551551
}

0 commit comments

Comments
 (0)