mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Ensure lexicographical ordering
This commit is contained in:
1 file changed
+1
@@ -79,6 +79,7 @@ fn read_all_mappings() -> anyhow::Result<MappingList> {
|
|||||||
let mut all_mappings = vec![];
|
let mut all_mappings = vec![];
|
||||||
|
|
||||||
for entry in WalkDir::new("src/syntax_mapping/builtins")
|
for entry in WalkDir::new("src/syntax_mapping/builtins")
|
||||||
|
.sort_by_file_name()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|entry| entry.unwrap_or_else(|err| panic!("failed to visit a file: {err}")))
|
.map(|entry| entry.unwrap_or_else(|err| panic!("failed to visit a file: {err}")))
|
||||||
.filter(|entry| {
|
.filter(|entry| {
|
||||||
|
|||||||
Reference in new issue
Block a user