Skip to content

Commit c6b74df

Browse files
committed
Fix dogfood test
1 parent 3a648ff commit c6b74df

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/utils/ast_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ pub fn eq_expr_opt(l: &Option<P<Expr>>, r: &Option<P<Expr>>) -> bool {
110110
pub fn eq_struct_rest(l: &StructRest, r: &StructRest) -> bool {
111111
match (l, r) {
112112
(StructRest::Base(lb), StructRest::Base(rb)) => eq_expr(lb, rb),
113-
(StructRest::Rest(_), StructRest::Rest(_)) => true,
114-
(StructRest::None, StructRest::None) => true,
113+
(StructRest::Rest(_), StructRest::Rest(_)) | (StructRest::None, StructRest::None) => true,
115114
_ => false,
116115
}
117116
}

0 commit comments

Comments
 (0)