@@ -18,7 +18,6 @@ pub fn expand(
18
18
let state = State :: with_attr_params (
19
19
input,
20
20
trait_name,
21
- quote ! { :: derive_more:: __private:: Error } ,
22
21
trait_name. to_lowercase ( ) ,
23
22
allowed_attr_params ( ) ,
24
23
) ?;
@@ -39,7 +38,7 @@ pub fn expand(
39
38
40
39
let source = source. map ( |source| {
41
40
quote ! {
42
- fn source( & self ) -> Option <& ( dyn :: derive_more:: __private :: Error + ' static ) > {
41
+ fn source( & self ) -> Option <& ( dyn :: derive_more:: Error + ' static ) > {
43
42
use :: derive_more:: __private:: AsDynError ;
44
43
#source
45
44
}
@@ -73,7 +72,7 @@ pub fn expand(
73
72
& generics,
74
73
quote ! {
75
74
where
76
- #( #bounds: :: core:: fmt:: Debug + :: core:: fmt:: Display + :: derive_more:: __private :: Error + ' static ) , *
75
+ #( #bounds: :: core:: fmt:: Debug + :: core:: fmt:: Display + :: derive_more:: Error + ' static ) , *
77
76
} ,
78
77
) ;
79
78
}
@@ -82,7 +81,7 @@ pub fn expand(
82
81
83
82
let render = quote ! {
84
83
#[ automatically_derived]
85
- impl #impl_generics :: derive_more:: __private :: Error for #ident #ty_generics #where_clause {
84
+ impl #impl_generics :: derive_more:: Error for #ident #ty_generics #where_clause {
86
85
#source
87
86
#provide
88
87
}
@@ -120,7 +119,6 @@ fn render_enum(
120
119
let state = State :: from_variant (
121
120
state. input ,
122
121
state. trait_name ,
123
- state. trait_module . clone ( ) ,
124
122
state. trait_attr . clone ( ) ,
125
123
allowed_attr_params ( ) ,
126
124
variant,
@@ -207,7 +205,7 @@ impl<'input, 'state> ParsedFields<'input, 'state> {
207
205
let source_provider = self . source . map ( |source| {
208
206
let source_expr = & self . data . members [ source] ;
209
207
quote ! {
210
- :: derive_more:: __private :: Error :: provide( & #source_expr, demand) ;
208
+ :: derive_more:: Error :: provide( & #source_expr, demand) ;
211
209
}
212
210
} ) ;
213
211
let backtrace_provider = self
@@ -237,7 +235,7 @@ impl<'input, 'state> ParsedFields<'input, 'state> {
237
235
let pattern = self . data . matcher ( & [ source] , & [ quote ! { source } ] ) ;
238
236
Some ( quote ! {
239
237
#pattern => {
240
- :: derive_more:: __private :: Error :: provide( source, demand) ;
238
+ :: derive_more:: Error :: provide( source, demand) ;
241
239
}
242
240
} )
243
241
}
@@ -249,7 +247,7 @@ impl<'input, 'state> ParsedFields<'input, 'state> {
249
247
Some ( quote ! {
250
248
#pattern => {
251
249
demand. provide_ref:: <:: std:: backtrace:: Backtrace >( backtrace) ;
252
- :: derive_more:: __private :: Error :: provide( source, demand) ;
250
+ :: derive_more:: Error :: provide( source, demand) ;
253
251
}
254
252
} )
255
253
}
0 commit comments