@@ -45,7 +45,7 @@ fn is_short_pattern_inner(pat: &ast::Pat) -> bool {
4545 | ast:: PatKind :: Path ( ..)
4646 | ast:: PatKind :: Range ( ..) => false ,
4747 ast:: PatKind :: Tuple ( ref subpats) => subpats. len ( ) <= 1 ,
48- ast:: PatKind :: TupleStruct ( ref path, ref subpats) => {
48+ ast:: PatKind :: TupleStruct ( _ , ref path, ref subpats) => {
4949 path. segments . len ( ) <= 1 && subpats. len ( ) <= 1
5050 }
5151 ast:: PatKind :: Box ( ref p) | ast:: PatKind :: Ref ( ref p, _) | ast:: PatKind :: Paren ( ref p) => {
@@ -226,7 +226,7 @@ impl Rewrite for Pat {
226226 PatKind :: Path ( ref q_self, ref path) => {
227227 rewrite_path ( context, PathContext :: Expr , q_self. as_ref ( ) , path, shape)
228228 }
229- PatKind :: TupleStruct ( ref path, ref pat_vec) => {
229+ PatKind :: TupleStruct ( _ , ref path, ref pat_vec) => {
230230 let path_str = rewrite_path ( context, PathContext :: Expr , None , path, shape) ?;
231231 rewrite_tuple_pat ( pat_vec, Some ( path_str) , self . span , context, shape)
232232 }
@@ -244,7 +244,7 @@ impl Rewrite for Pat {
244244 . collect ( ) ;
245245 Some ( format ! ( "[{}]" , rw. join( ", " ) ) )
246246 }
247- PatKind :: Struct ( ref path, ref fields, ellipsis) => {
247+ PatKind :: Struct ( _ , ref path, ref fields, ellipsis) => {
248248 rewrite_struct_pat ( path, fields, ellipsis, self . span , context, shape)
249249 }
250250 PatKind :: MacCall ( ref mac) => {
0 commit comments