@@ -128,8 +128,7 @@ pub(crate) fn parse_comparison_expression(
128128}
129129
130130let mut diagnostic =Diagnostic :: error ( & format ! (
131- "Operator `=` can't be performed between types `{}` and `{}`" ,
132- lhs_type, rhs_type
131+ "Operator `=` can't be performed between types `{lhs_type}` and `{rhs_type}`" ,
133132) )
134133. with_location ( operator. location ) ;
135134
@@ -208,8 +207,7 @@ pub(crate) fn parse_comparison_expression(
208207}
209208
210209let mut diagnostic =Diagnostic :: error ( & format ! (
211- "Operator `!=` can't be performed between types `{}` and `{}`" ,
212- lhs_type, rhs_type
210+ "Operator `!=` can't be performed between types `{lhs_type}` and `{rhs_type}`" ,
213211) )
214212. with_location ( operator. location ) ;
215213
@@ -290,8 +288,7 @@ pub(crate) fn parse_comparison_expression(
290288
291289// Return error if this operator can't be performed even with implicit cast
292290return Err ( Diagnostic :: error ( & format ! (
293- "Operator `>` can't be performed between types `{}` and `{}`" ,
294- lhs_type, rhs_type
291+ "Operator `>` can't be performed between types `{lhs_type}` and `{rhs_type}`" ,
295292) )
296293. with_location ( operator. location )
297294. as_boxed ( ) ) ;
@@ -363,8 +360,7 @@ pub(crate) fn parse_comparison_expression(
363360
364361// Return error if this operator can't be performed even with implicit cast
365362return Err ( Diagnostic :: error ( & format ! (
366- "Operator `>=` can't be performed between types `{}` and `{}`" ,
367- lhs_type, rhs_type
363+ "Operator `>=` can't be performed between types `{lhs_type}` and `{rhs_type}`" ,
368364) )
369365. with_location ( operator. location )
370366. as_boxed ( ) ) ;
@@ -436,8 +432,7 @@ pub(crate) fn parse_comparison_expression(
436432
437433// Return error if this operator can't be performed even with implicit cast
438434return Err ( Diagnostic :: error ( & format ! (
439- "Operator `<` can't be performed between types `{}` and `{}`" ,
440- lhs_type, rhs_type
435+ "Operator `<` can't be performed between types `{lhs_type}` and `{rhs_type}`" ,
441436) )
442437. with_location ( operator. location )
443438. as_boxed ( ) ) ;
@@ -509,8 +504,7 @@ pub(crate) fn parse_comparison_expression(
509504
510505// Return error if this operator can't be performed even with implicit cast
511506return Err ( Diagnostic :: error ( & format ! (
512- "Operator `<=` can't be performed between types `{}` and `{}`" ,
513- lhs_type, rhs_type
507+ "Operator `<=` can't be performed between types `{lhs_type}` and `{rhs_type}`" ,
514508) )
515509. with_location ( operator. location )
516510. as_boxed ( ) ) ;
@@ -582,8 +576,7 @@ pub(crate) fn parse_comparison_expression(
582576
583577// Return error if this operator can't be performed even with implicit cast
584578return Err ( Diagnostic :: error ( & format ! (
585- "Operator `<=>` can't be performed between types `{}` and `{}`" ,
586- lhs_type, rhs_type
579+ "Operator `<=>` can't be performed between types `{lhs_type}` and `{rhs_type}`" ,
587580) )
588581. with_location ( operator. location )
589582. as_boxed ( ) ) ;