@@ -20,11 +20,11 @@ mod private
2020 use package:: Package ;
2121 use error::
2222 {
23- err,
23+ // err,
2424 untyped::
2525 {
2626 // Result,
27- Error as wError,
27+ // Error as wError,
2828 Context ,
2929 } ,
3030 } ;
@@ -101,7 +101,7 @@ mod private
101101 {
102102 /// Represents a common error.
103103 #[ error( "Common error: {0}" ) ]
104- Common ( #[ from ] wError ) ,
104+ Common ( #[ from ] error :: untyped :: Error ) , // qqq : rid of
105105 /// Represents an I/O error.
106106 #[ error( "I/O error: {0}" ) ]
107107 IO ( #[ from ] std:: io:: Error ) ,
@@ -140,7 +140,7 @@ mod private
140140 let stability = package. stability ( ) ?;
141141 let module_name = package. name ( ) ?;
142142 let repository_url = package. repository ( ) ?
143- . ok_or_else :: < wError , _ > ( || err ! ( "Fail to find repository_url in module`s Cargo.toml" ) ) ?;
143+ . ok_or_else :: < error :: untyped :: Error , _ > ( || error :: untyped :: format_err !( "Fail to find repository_url in module`s Cargo.toml" ) ) ?;
144144
145145 let discord_url = package
146146 . discord_url ( ) ?
@@ -172,7 +172,7 @@ mod private
172172
173173 let repo_url = url:: repo_url_extract ( & self . repository_url )
174174 . and_then ( | r | url:: git_info_extract ( & r ) . ok ( ) )
175- . ok_or_else :: < wError , _ > ( || err ! ( "Fail to parse repository url" ) ) ?;
175+ . ok_or_else :: < error :: untyped :: Error , _ > ( || error :: untyped :: format_err !( "Fail to parse repository url" ) ) ?;
176176 let example= if let Some ( name ) = find_example_file
177177 (
178178 self . module_path . as_path ( ) ,
@@ -269,7 +269,7 @@ mod private
269269 . join
270270 (
271271 repository:: readme_path ( path. parent ( ) . unwrap ( ) . as_ref ( ) )
272- // .ok_or_else::< wError , _ >( || err !( "Fail to find README.md at {}", &path ) )
272+ // .ok_or_else::< error::untyped::Error , _ >( || error::untyped::format_err !( "Fail to find README.md at {}", &path ) )
273273 . err_with_report ( & report ) ?
274274 ) ;
275275
0 commit comments