Skip to content

Commit 0071ce3

Browse files
CoCo-Japan-panUrgau
andcommitted
Apply suggestion from @Urgau
Be explicit Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
1 parent 936e9b8 commit 0071ce3

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

  • src/tools/clippy/clippy_utils/src/ast_utils

src/tools/clippy/clippy_utils/src/ast_utils/mod.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -845,11 +845,17 @@ fn eq_restriction_kind(l: &RestrictionKind, r: &RestrictionKind) -> bool {
845845
match (l, r) {
846846
(RestrictionKind::Unrestricted, RestrictionKind::Unrestricted) => true,
847847
(
848-
RestrictionKind::Restricted { path: l_path, shorthand: l_short, .. },
849-
RestrictionKind::Restricted { path: r_path, shorthand: r_short, .. },
850-
) => {
851-
l_short == r_short && eq_path(l_path, r_path)
852-
}
848+
RestrictionKind::Restricted {
849+
path: l_path,
850+
shorthand: l_short,
851+
id: _,
852+
},
853+
RestrictionKind::Restricted {
854+
path: r_path,
855+
shorthand: r_short,
856+
id: _,
857+
},
858+
) => l_short == r_short && eq_path(l_path, r_path),
853859
_ => false,
854860
}
855861
}

0 commit comments

Comments
 (0)