Skip to content

Commit

Permalink
fix: sort hashset values.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Aug 29, 2024
1 parent f4486e2 commit 4360382
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions crates/oxc_ast/src/generated/derive_clone_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
use oxc_allocator::{Allocator, CloneIn};

#[allow(clippy::wildcard_imports)]
use crate::ast::literal::*;
use crate::ast::js::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::ts::*;
use crate::ast::jsx::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::js::*;
use crate::ast::literal::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::jsx::*;
use crate::ast::ts::*;

impl<'alloc> CloneIn<'alloc> for BooleanLiteral {
type Cloned = BooleanLiteral;
Expand Down
8 changes: 4 additions & 4 deletions crates/oxc_ast/src/generated/derive_get_span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
use oxc_span::{GetSpan, Span};

#[allow(clippy::wildcard_imports)]
use crate::ast::literal::*;
use crate::ast::js::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::ts::*;
use crate::ast::jsx::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::jsx::*;
use crate::ast::literal::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::js::*;
use crate::ast::ts::*;

impl GetSpan for BooleanLiteral {
#[inline]
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_ast/src/generated/derive_get_span_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use oxc_span::{GetSpanMut, Span};
use crate::ast::js::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::literal::*;
use crate::ast::jsx::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::jsx::*;
use crate::ast::literal::*;

#[allow(clippy::wildcard_imports)]
use crate::ast::ts::*;
Expand Down
4 changes: 3 additions & 1 deletion tasks/ast_tools/src/derives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,15 @@ macro_rules! define_derive {
})
.into_iter()
.fold(Vec::new(), |mut acc, (path, (modules, streams))| {
let mut modules = Vec::from_iter(modules);
modules.sort();
acc.push((
$crate::output(
format!("crates/{}", path.split("::").next().unwrap()).as_str(),
format!("derive_{}.rs", Self::trait_name().to_case(Case::Snake)).as_str()
),
Self::template(
Vec::from_iter(modules),
modules,
streams
.into_iter()
.fold(TokenStream::new(), |mut acc, it| {
Expand Down

0 comments on commit 4360382

Please sign in to comment.