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 dc035bb commit 87afdf4Copy full SHA for 87afdf4
src/patterns.rs
@@ -247,9 +247,10 @@ impl<'a> Spanned for TuplePatField<'a> {
247
pub fn can_be_overflowed_pat(context: &RewriteContext, pat: &TuplePatField, len: usize) -> bool {
248
match *pat {
249
TuplePatField::Pat(pat) => match pat.node {
250
- ast::PatKind::Path(..) | ast::PatKind::Tuple(..) | ast::PatKind::Struct(..) => {
251
- context.use_block_indent() && len == 1
252
- }
+ ast::PatKind::Path(..) |
+ ast::PatKind::Tuple(..) |
+ ast::PatKind::Struct(..) |
253
+ ast::PatKind::TupleStruct(..) => context.use_block_indent() && len == 1,
254
ast::PatKind::Ref(ref p, _) | ast::PatKind::Box(ref p) => {
255
can_be_overflowed_pat(context, &TuplePatField::Pat(p), len)
256
}
0 commit comments