Skip to content

Commit a319937

Browse files
committed
Merge crate and restricted visibilities
1 parent cbe6607 commit a319937

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) => true,
549549
(Restricted { path: l, .. }, Restricted { path: r, .. }) => eq_path(l, r),
550550
_ => false,
551551
}

0 commit comments

Comments
 (0)