Skip to content

Commit 326922c

Browse files
Apply suggestion from @Urgau
Be explicit Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
1 parent 936e9b8 commit 326922c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,8 +845,8 @@ 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, .. },
848+
RestrictionKind::Restricted { path: l_path, shorthand: l_short, tokens: _ },
849+
RestrictionKind::Restricted { path: r_path, shorthand: r_short, tokens: _ },
850850
) => {
851851
l_short == r_short && eq_path(l_path, r_path)
852852
}

0 commit comments

Comments
 (0)