Skip to content

Commit

Permalink
fix: sort crate files.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Aug 29, 2024
1 parent b1b4ed3 commit 6cb04bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/ast_tools/src/derives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ macro_rules! define_derive {
use std::collections::{HashMap, HashSet};
use std::vec::Vec;
use convert_case::{Case, Casing};
use itertools::Itertools;

use $crate::derives::DeriveTemplate;

Expand All @@ -94,6 +95,7 @@ macro_rules! define_derive {
acc
})
.into_iter()
.sorted_by(|lhs, rhs| lhs.0.cmp(rhs.0))
.fold(Vec::new(), |mut acc, (path, (modules, streams))| {
let mut modules = Vec::from_iter(modules);
modules.sort();
Expand Down

0 comments on commit 6cb04bf

Please sign in to comment.