@@ -45,7 +45,7 @@ fn is_short_pattern_inner(pat: &ast::Pat) -> bool {
45
45
| ast:: PatKind :: Path ( ..)
46
46
| ast:: PatKind :: Range ( ..) => false ,
47
47
ast:: PatKind :: Tuple ( ref subpats) => subpats. len ( ) <= 1 ,
48
- ast:: PatKind :: TupleStruct ( ref path, ref subpats) => {
48
+ ast:: PatKind :: TupleStruct ( _ , ref path, ref subpats) => {
49
49
path. segments . len ( ) <= 1 && subpats. len ( ) <= 1
50
50
}
51
51
ast:: PatKind :: Box ( ref p) | ast:: PatKind :: Ref ( ref p, _) | ast:: PatKind :: Paren ( ref p) => {
@@ -226,7 +226,7 @@ impl Rewrite for Pat {
226
226
PatKind :: Path ( ref q_self, ref path) => {
227
227
rewrite_path ( context, PathContext :: Expr , q_self. as_ref ( ) , path, shape)
228
228
}
229
- PatKind :: TupleStruct ( ref path, ref pat_vec) => {
229
+ PatKind :: TupleStruct ( _ , ref path, ref pat_vec) => {
230
230
let path_str = rewrite_path ( context, PathContext :: Expr , None , path, shape) ?;
231
231
rewrite_tuple_pat ( pat_vec, Some ( path_str) , self . span , context, shape)
232
232
}
@@ -244,7 +244,7 @@ impl Rewrite for Pat {
244
244
. collect ( ) ;
245
245
Some ( format ! ( "[{}]" , rw. join( ", " ) ) )
246
246
}
247
- PatKind :: Struct ( ref path, ref fields, ellipsis) => {
247
+ PatKind :: Struct ( _ , ref path, ref fields, ellipsis) => {
248
248
rewrite_struct_pat ( path, fields, ellipsis, self . span , context, shape)
249
249
}
250
250
PatKind :: MacCall ( ref mac) => {
0 commit comments