File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ pub fn gen_debug_impl(
42
42
format_string. push_str ( " }}" ) ;
43
43
tokens. insert ( 0 , quote ! { #format_string } ) ;
44
44
45
+ let prefix = ctx. trait_prefix ( ) ;
46
+
45
47
quote ! {
46
- fn fmt( & self , f: & mut :: std :: fmt:: Formatter ) -> :: std :: fmt:: Result {
48
+ fn fmt( & self , f: & mut :: #prefix :: fmt:: Formatter ) -> :: #prefix :: fmt:: Result {
47
49
write!( f, #( #tokens ) , * )
48
50
}
49
51
}
Original file line number Diff line number Diff line change @@ -1920,8 +1920,10 @@ impl CodeGenerator for CompInfo {
1920
1920
self . kind ( ) ,
1921
1921
) ;
1922
1922
1923
+ let prefix = ctx. trait_prefix ( ) ;
1924
+
1923
1925
result. push ( quote ! {
1924
- impl #generics :: std :: fmt:: Debug for #ty_for_impl {
1926
+ impl #generics :: #prefix :: fmt:: Debug for #ty_for_impl {
1925
1927
#impl_
1926
1928
}
1927
1929
} ) ;
You can’t perform that action at this time.
0 commit comments