@@ -243,7 +243,7 @@ impl ExecutableDefinitionName {
243243 pub fn unwrap_fragment_definition_name ( & self ) -> FragmentDefinitionName {
244244 match self {
245245 ExecutableDefinitionName :: OperationDefinitionName ( _) => {
246- panic ! ( "Expected FragmentDefinitionName, found {}" , self )
246+ panic ! ( "Expected FragmentDefinitionName, found {self}" )
247247 }
248248 ExecutableDefinitionName :: FragmentDefinitionName ( name) => * name,
249249 }
@@ -401,11 +401,11 @@ impl Selection {
401401impl fmt:: Debug for Selection {
402402 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
403403 match self {
404- Selection :: FragmentSpread ( node) => f. write_fmt ( format_args ! ( "{:#?}" , node ) ) ,
405- Selection :: InlineFragment ( node) => f. write_fmt ( format_args ! ( "{:#?}" , node ) ) ,
406- Selection :: LinkedField ( node) => f. write_fmt ( format_args ! ( "{:#?}" , node ) ) ,
407- Selection :: ScalarField ( node) => f. write_fmt ( format_args ! ( "{:#?}" , node ) ) ,
408- Selection :: Condition ( node) => f. write_fmt ( format_args ! ( "{:#?}" , node ) ) ,
404+ Selection :: FragmentSpread ( node) => f. write_fmt ( format_args ! ( "{node :#?}" ) ) ,
405+ Selection :: InlineFragment ( node) => f. write_fmt ( format_args ! ( "{node :#?}" ) ) ,
406+ Selection :: LinkedField ( node) => f. write_fmt ( format_args ! ( "{node :#?}" ) ) ,
407+ Selection :: ScalarField ( node) => f. write_fmt ( format_args ! ( "{node :#?}" ) ) ,
408+ Selection :: Condition ( node) => f. write_fmt ( format_args ! ( "{node :#?}" ) ) ,
409409 }
410410 }
411411}
@@ -663,15 +663,15 @@ impl Value {
663663 /// Panics if the value is not a constant.
664664 pub fn expect_constant ( & self ) -> & ConstantValue {
665665 self . get_constant ( ) . unwrap_or_else ( || {
666- panic ! ( "expected a constant, got {:?}" , self ) ;
666+ panic ! ( "expected a constant, got {self :?}" ) ;
667667 } )
668668 }
669669
670670 /// Return the constant string literal of this value.
671671 /// Panics if the value is not a constant string literal.
672672 pub fn expect_string_literal ( & self ) -> StringKey {
673673 self . get_string_literal ( ) . unwrap_or_else ( || {
674- panic ! ( "expected a string literal, got {:?}" , self ) ;
674+ panic ! ( "expected a string literal, got {self :?}" ) ;
675675 } )
676676 }
677677}
0 commit comments