@@ -21,8 +21,7 @@ use crate::expression::parentheses::{
21
21
use crate :: prelude:: * ;
22
22
use crate :: preview:: {
23
23
is_empty_parameters_no_unnecessary_parentheses_around_return_value_enabled,
24
- is_f_string_implicit_concatenated_string_literal_quotes_enabled,
25
- is_hug_parens_with_braces_and_square_brackets_enabled,
24
+ is_f_string_formatting_enabled, is_hug_parens_with_braces_and_square_brackets_enabled,
26
25
} ;
27
26
28
27
mod binary_like;
@@ -770,7 +769,7 @@ impl<'input> CanOmitOptionalParenthesesVisitor<'input> {
770
769
Expr :: StringLiteral ( ast:: ExprStringLiteral { value, .. } )
771
770
if value. is_implicit_concatenated ( ) =>
772
771
{
773
- if !is_f_string_implicit_concatenated_string_literal_quotes_enabled ( self . context ) {
772
+ if !is_f_string_formatting_enabled ( self . context ) {
774
773
self . update_max_precedence ( OperatorPrecedence :: String ) ;
775
774
}
776
775
@@ -779,14 +778,14 @@ impl<'input> CanOmitOptionalParenthesesVisitor<'input> {
779
778
Expr :: BytesLiteral ( ast:: ExprBytesLiteral { value, .. } )
780
779
if value. is_implicit_concatenated ( ) =>
781
780
{
782
- if !is_f_string_implicit_concatenated_string_literal_quotes_enabled ( self . context ) {
781
+ if !is_f_string_formatting_enabled ( self . context ) {
783
782
self . update_max_precedence ( OperatorPrecedence :: String ) ;
784
783
}
785
784
786
785
return ;
787
786
}
788
787
Expr :: FString ( ast:: ExprFString { value, .. } ) if value. is_implicit_concatenated ( ) => {
789
- if !is_f_string_implicit_concatenated_string_literal_quotes_enabled ( self . context ) {
788
+ if !is_f_string_formatting_enabled ( self . context ) {
790
789
self . update_max_precedence ( OperatorPrecedence :: String ) ;
791
790
}
792
791
0 commit comments