Allow returning tuple in expression form
This commit is contained in:
parent
2352ba66d4
commit
a9a067f5a9
@ -523,7 +523,7 @@ fn generate_expr_tuple(f: &mut Formatter, tuple: &ExprTuple, cx: Context) -> Res
|
||||
f.write("nil");
|
||||
Ok(())
|
||||
}
|
||||
_ if cx.is_multi_expr() => generate_punctuated_expr(f, &tuple.elems),
|
||||
_ if cx.is_ret() || cx.is_multi_expr() => generate_punctuated_expr(f, &tuple.elems),
|
||||
_ => syn_error!(tuple, "expected single-valued expression"),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user