Skip to content

Commit 7d44e96

Browse files
committed
coreutils multicall: Sort the command by alphabetic order (for the man)
1 parent ec1d2fb commit 7d44e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ pub fn main() {
3838
let mut mf = File::create(Path::new(&out_dir).join("uutils_map.rs")).unwrap();
3939

4040
mf.write_all(
41-
"type UtilityMap<T> = phf::Map<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\
41+
"type UtilityMap<T> = phf::OrderedMap<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\
4242
\n\
4343
fn util_map<T: uucore::Args>() -> UtilityMap<T> {\n"
4444
.as_bytes(),
4545
)
4646
.unwrap();
4747

48-
let mut phf_map = phf_codegen::Map::<&str>::new();
48+
let mut phf_map = phf_codegen::OrderedMap::<&str>::new();
4949
for krate in &crates {
5050
let map_value = format!("({krate}::uumain, {krate}::uu_app)");
5151
match krate.as_ref() {

0 commit comments

Comments
 (0)