Ensure lexicographical ordering

This commit is contained in:
cyqsimon 2023-11-02 16:36:25 +08:00
parent 97780f987e
commit 77e491161c
No known key found for this signature in database
GPG Key ID: 1D8CE2F297390D65

View File

@ -79,6 +79,7 @@ fn read_all_mappings() -> anyhow::Result<MappingList> {
let mut all_mappings = vec![];
for entry in WalkDir::new("src/syntax_mapping/builtins")
.sort_by_file_name()
.into_iter()
.map(|entry| entry.unwrap_or_else(|err| panic!("failed to visit a file: {err}")))
.filter(|entry| {