@@ -749,7 +749,7 @@ mod tests {
749749 ] ;
750750 for t in types {
751751 assert_eq ! ( t, t) ;
752- assert ! ( !format!( "{:?}" , t ) . is_empty( ) ) ;
752+ assert ! ( !format!( "{t :?}" ) . is_empty( ) ) ;
753753 }
754754 }
755755
@@ -773,7 +773,7 @@ mod tests {
773773 ] ;
774774 for t in types {
775775 assert_eq ! ( t, t) ;
776- assert ! ( !format!( "{:?}" , t ) . is_empty( ) ) ;
776+ assert ! ( !format!( "{t :?}" ) . is_empty( ) ) ;
777777 }
778778 }
779779
@@ -787,7 +787,7 @@ mod tests {
787787 assert_eq ! ( t, GgufValueType :: Uint8 ) ;
788788 let cloned = t;
789789 assert_eq ! ( t, cloned) ;
790- assert ! ( format!( "{:?}" , t ) . contains( "Uint8" ) ) ;
790+ assert ! ( format!( "{t :?}" ) . contains( "Uint8" ) ) ;
791791 }
792792
793793 #[ test]
@@ -796,14 +796,14 @@ mod tests {
796796 assert_eq ! ( t, GgmlType :: F32 ) ;
797797 let cloned = t;
798798 assert_eq ! ( t, cloned) ;
799- assert ! ( format!( "{:?}" , t ) . contains( "F32" ) ) ;
799+ assert ! ( format!( "{t :?}" ) . contains( "F32" ) ) ;
800800 }
801801
802802 #[ test]
803803 fn test_gguf_value_clone ( ) {
804804 let v = GgufValue :: String ( "test" . to_string ( ) ) ;
805805 let cloned = v. clone ( ) ;
806- assert ! ( format!( "{:?}" , cloned ) . contains( "test" ) ) ;
806+ assert ! ( format!( "{cloned :?}" ) . contains( "test" ) ) ;
807807 }
808808
809809 #[ test]
@@ -816,7 +816,7 @@ mod tests {
816816 let cloned = h. clone ( ) ;
817817 assert_eq ! ( cloned. version, 3 ) ;
818818 assert_eq ! ( cloned. tensor_count, 10 ) ;
819- assert ! ( format!( "{:?}" , cloned ) . contains( "GgufHeader" ) ) ;
819+ assert ! ( format!( "{cloned :?}" ) . contains( "GgufHeader" ) ) ;
820820 }
821821}
822822
0 commit comments