File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -3405,22 +3405,17 @@ pub(crate) mod printing {
3405
3405
fn print_expr_call ( e : & ExprCall , tokens : & mut TokenStream , fixup : FixupContext ) {
3406
3406
outer_attrs_to_tokens ( & e. attrs , tokens) ;
3407
3407
3408
- let call_precedence = if let Expr :: Field ( _) = & * e. func {
3409
- Precedence :: MIN
3410
- } else {
3411
- Precedence :: Unambiguous
3412
- } ;
3413
3408
let func_fixup = fixup. leftmost_subexpression_with_begin_operator (
3414
3409
#[ cfg( feature = "full" ) ]
3415
3410
true ,
3416
3411
false ,
3417
3412
) ;
3418
- print_subexpression (
3419
- & e . func ,
3420
- func_fixup . leading_precedence ( & e . func ) < call_precedence ,
3421
- tokens ,
3422
- func_fixup ,
3423
- ) ;
3413
+ let needs_group = if let Expr :: Field ( _ ) = & * e . func {
3414
+ true
3415
+ } else {
3416
+ func_fixup . leading_precedence ( & e . func ) < Precedence :: Unambiguous
3417
+ } ;
3418
+ print_subexpression ( & e . func , needs_group , tokens , func_fixup ) ;
3424
3419
3425
3420
e. paren_token . surround ( tokens, |tokens| {
3426
3421
e. args . to_tokens ( tokens) ;
You can’t perform that action at this time.
0 commit comments