From 7d44e96713f9af779f2426bf38c6463262395102 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 17 Jul 2023 22:34:03 +0200 Subject: [PATCH] coreutils multicall: Sort the command by alphabetic order (for the man) --- build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 04948c0d3..09b33fa91 100644 --- a/build.rs +++ b/build.rs @@ -38,14 +38,14 @@ pub fn main() { let mut mf = File::create(Path::new(&out_dir).join("uutils_map.rs")).unwrap(); mf.write_all( - "type UtilityMap = phf::Map<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\ + "type UtilityMap = phf::OrderedMap<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\ \n\ fn util_map() -> UtilityMap {\n" .as_bytes(), ) .unwrap(); - let mut phf_map = phf_codegen::Map::<&str>::new(); + let mut phf_map = phf_codegen::OrderedMap::<&str>::new(); for krate in &crates { let map_value = format!("({krate}::uumain, {krate}::uu_app)"); match krate.as_ref() {