We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936e9b8 commit 0071ce3Copy full SHA for 0071ce3
1 file changed
src/tools/clippy/clippy_utils/src/ast_utils/mod.rs
@@ -845,11 +845,17 @@ fn eq_restriction_kind(l: &RestrictionKind, r: &RestrictionKind) -> bool {
845
match (l, r) {
846
(RestrictionKind::Unrestricted, RestrictionKind::Unrestricted) => true,
847
(
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
- }
+ RestrictionKind::Restricted {
+ path: l_path,
+ shorthand: l_short,
+ id: _,
+ },
853
854
+ path: r_path,
855
+ shorthand: r_short,
856
857
858
+ ) => l_short == r_short && eq_path(l_path, r_path),
859
_ => false,
860
}
861
0 commit comments