We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec1d2fb commit 7d44e96Copy full SHA for 7d44e96
build.rs
@@ -38,14 +38,14 @@ pub fn main() {
38
let mut mf = File::create(Path::new(&out_dir).join("uutils_map.rs")).unwrap();
39
40
mf.write_all(
41
- "type UtilityMap<T> = phf::Map<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\
+ "type UtilityMap<T> = phf::OrderedMap<&'static str, (fn(T) -> i32, fn() -> Command)>;\n\
42
\n\
43
fn util_map<T: uucore::Args>() -> UtilityMap<T> {\n"
44
.as_bytes(),
45
)
46
.unwrap();
47
48
- let mut phf_map = phf_codegen::Map::<&str>::new();
+ let mut phf_map = phf_codegen::OrderedMap::<&str>::new();
49
for krate in &crates {
50
let map_value = format!("({krate}::uumain, {krate}::uu_app)");
51
match krate.as_ref() {
0 commit comments