@@ -8,7 +8,7 @@ use std::fs::File;
88use std:: io:: Write ;
99use std:: path:: { Path , PathBuf } ;
1010
11- pub fn main ( ) -> Result < ( ) , Box < dyn std :: error:: Error > > {
11+ pub fn main ( ) -> Result < ( ) , Box < dyn core :: error:: Error > > {
1212 let out_dir = env:: var ( "OUT_DIR" ) ?;
1313
1414 let mut embedded_file = File :: create ( Path :: new ( & out_dir) . join ( "embedded_locales.rs" ) ) ?;
@@ -63,7 +63,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
6363///
6464/// Returns an error if the `CARGO_MANIFEST_DIR` environment variable is not set
6565/// or if the current directory structure does not allow determining the project root.
66- fn project_root ( ) -> Result < PathBuf , Box < dyn std :: error:: Error > > {
66+ fn project_root ( ) -> Result < PathBuf , Box < dyn core :: error:: Error > > {
6767 let manifest_dir = env:: var ( "CARGO_MANIFEST_DIR" ) ?;
6868 let uucore_path = Path :: new ( & manifest_dir) ;
6969
@@ -135,7 +135,7 @@ fn embed_single_utility_locale(
135135 project_root : & Path ,
136136 util_name : & str ,
137137 locales_to_embed : & ( String , Option < String > ) ,
138- ) -> Result < ( ) , Box < dyn std :: error:: Error > > {
138+ ) -> Result < ( ) , Box < dyn core :: error:: Error > > {
139139 // Embed utility-specific locales
140140 embed_component_locales ( embedded_file, locales_to_embed, util_name, |locale| {
141141 project_root
@@ -171,7 +171,7 @@ fn embed_all_utility_locales(
171171 embedded_file : & mut File ,
172172 project_root : & Path ,
173173 locales_to_embed : & ( String , Option < String > ) ,
174- ) -> Result < ( ) , Box < dyn std :: error:: Error > > {
174+ ) -> Result < ( ) , Box < dyn core :: error:: Error > > {
175175 use std:: fs;
176176
177177 // Discover all uu_* directories
@@ -221,7 +221,7 @@ fn embed_all_utility_locales(
221221fn embed_static_utility_locales (
222222 embedded_file : & mut File ,
223223 locales_to_embed : & ( String , Option < String > ) ,
224- ) -> Result < ( ) , Box < dyn std :: error:: Error > > {
224+ ) -> Result < ( ) , Box < dyn core :: error:: Error > > {
225225 use std:: env;
226226
227227 writeln ! (
@@ -294,9 +294,9 @@ fn get_locales_to_embed() -> (String, Option<String>) {
294294fn for_each_locale < F > (
295295 locales : & ( String , Option < String > ) ,
296296 mut f : F ,
297- ) -> Result < ( ) , Box < dyn std :: error:: Error > >
297+ ) -> Result < ( ) , Box < dyn core :: error:: Error > >
298298where
299- F : FnMut ( & str ) -> Result < ( ) , Box < dyn std :: error:: Error > > ,
299+ F : FnMut ( & str ) -> Result < ( ) , Box < dyn core :: error:: Error > > ,
300300{
301301 f ( & locales. 0 ) ?;
302302 if let Some ( ref system_locale) = locales. 1 {
@@ -317,7 +317,7 @@ fn embed_locale_file(
317317 locale_key : & str ,
318318 locale : & str ,
319319 component : & str ,
320- ) -> Result < ( ) , Box < dyn std :: error:: Error > > {
320+ ) -> Result < ( ) , Box < dyn core :: error:: Error > > {
321321 use std:: fs;
322322
323323 if locale_path. exists ( ) || locale_path. is_file ( ) {
@@ -359,7 +359,7 @@ fn embed_all_locales_for_component<F>(
359359 embedded_file : & mut File ,
360360 component_name : & str ,
361361 path_builder : & F ,
362- ) -> Result < ( ) , Box < dyn std :: error:: Error > >
362+ ) -> Result < ( ) , Box < dyn core :: error:: Error > >
363363where
364364 F : Fn ( & str ) -> PathBuf ,
365365{
@@ -391,7 +391,7 @@ fn embed_component_locales<F>(
391391 locales : & ( String , Option < String > ) ,
392392 component_name : & str ,
393393 path_builder : F ,
394- ) -> Result < ( ) , Box < dyn std :: error:: Error > >
394+ ) -> Result < ( ) , Box < dyn core :: error:: Error > >
395395where
396396 F : Fn ( & str ) -> PathBuf ,
397397{
0 commit comments