@@ -18,7 +18,6 @@ pub fn expand(
1818 let state = State :: with_attr_params (
1919 input,
2020 trait_name,
21- quote ! { :: derive_more:: __private:: Error } ,
2221 trait_name. to_lowercase ( ) ,
2322 allowed_attr_params ( ) ,
2423 ) ?;
@@ -39,7 +38,7 @@ pub fn expand(
3938
4039 let source = source. map ( |source| {
4140 quote ! {
42- fn source( & self ) -> Option <& ( dyn :: derive_more:: __private :: Error + ' static ) > {
41+ fn source( & self ) -> Option <& ( dyn :: derive_more:: Error + ' static ) > {
4342 use :: derive_more:: __private:: AsDynError ;
4443 #source
4544 }
@@ -73,7 +72,7 @@ pub fn expand(
7372 & generics,
7473 quote ! {
7574 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 ) , *
7776 } ,
7877 ) ;
7978 }
@@ -82,7 +81,7 @@ pub fn expand(
8281
8382 let render = quote ! {
8483 #[ 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 {
8685 #source
8786 #provide
8887 }
@@ -120,7 +119,6 @@ fn render_enum(
120119 let state = State :: from_variant (
121120 state. input ,
122121 state. trait_name ,
123- state. trait_module . clone ( ) ,
124122 state. trait_attr . clone ( ) ,
125123 allowed_attr_params ( ) ,
126124 variant,
@@ -207,7 +205,7 @@ impl<'input, 'state> ParsedFields<'input, 'state> {
207205 let source_provider = self . source . map ( |source| {
208206 let source_expr = & self . data . members [ source] ;
209207 quote ! {
210- :: derive_more:: __private :: Error :: provide( & #source_expr, demand) ;
208+ :: derive_more:: Error :: provide( & #source_expr, demand) ;
211209 }
212210 } ) ;
213211 let backtrace_provider = self
@@ -237,7 +235,7 @@ impl<'input, 'state> ParsedFields<'input, 'state> {
237235 let pattern = self . data . matcher ( & [ source] , & [ quote ! { source } ] ) ;
238236 Some ( quote ! {
239237 #pattern => {
240- :: derive_more:: __private :: Error :: provide( source, demand) ;
238+ :: derive_more:: Error :: provide( source, demand) ;
241239 }
242240 } )
243241 }
@@ -249,7 +247,7 @@ impl<'input, 'state> ParsedFields<'input, 'state> {
249247 Some ( quote ! {
250248 #pattern => {
251249 demand. provide_ref:: <:: std:: backtrace:: Backtrace >( backtrace) ;
252- :: derive_more:: __private :: Error :: provide( source, demand) ;
250+ :: derive_more:: Error :: provide( source, demand) ;
253251 }
254252 } )
255253 }
0 commit comments