@@ -266,11 +266,8 @@ fn generate_impl(
266
266
. clone_for_update ( ) ;
267
267
268
268
// Goto link : https://doc.rust-lang.org/reference/paths.html#qualified-paths
269
- let qualified_path_type = make:: path_from_text ( & format ! (
270
- "<{} as {}>" ,
271
- field_ty. to_string( ) ,
272
- delegate. trait_( ) ?. to_string( )
273
- ) ) ;
269
+ let qualified_path_type =
270
+ make:: path_from_text ( & format ! ( "<{} as {}>" , field_ty, delegate. trait_( ) ?) ) ;
274
271
275
272
let delegate_assoc_items = delegate. get_or_create_assoc_item_list ( ) ;
276
273
match bound_def. assoc_item_list ( ) {
@@ -373,11 +370,8 @@ fn generate_impl(
373
370
. clone_for_update ( ) ;
374
371
375
372
// Goto link : https://doc.rust-lang.org/reference/paths.html#qualified-paths
376
- let qualified_path_type = make:: path_from_text ( & format ! (
377
- "<{} as {}>" ,
378
- field_ty. to_string( ) ,
379
- delegate. trait_( ) ?. to_string( )
380
- ) ) ;
373
+ let qualified_path_type =
374
+ make:: path_from_text ( & format ! ( "<{} as {}>" , field_ty, delegate. trait_( ) ?) ) ;
381
375
382
376
// 4) Transform associated items in delegte trait impl
383
377
let delegate_assoc_items = delegate. get_or_create_assoc_item_list ( ) ;
@@ -759,7 +753,7 @@ fn ty_assoc_item(item: syntax::ast::TypeAlias, qual_path_ty: Path) -> Option<Ass
759
753
}
760
754
761
755
fn qualified_path ( qual_path_ty : ast:: Path , path_expr_seg : ast:: Path ) -> ast:: Path {
762
- make:: path_from_text ( & format ! ( "{}::{}" , qual_path_ty. to_string ( ) , path_expr_seg. to_string ( ) ) )
756
+ make:: path_from_text ( & format ! ( "{}::{}" , qual_path_ty, path_expr_seg) )
763
757
}
764
758
765
759
#[ cfg( test) ]
0 commit comments