From 9a3bb201ac1c3cb4bf60ceed844b50b621f9dfad Mon Sep 17 00:00:00 2001 From: Tyler K Date: Thu, 12 Dec 2024 15:25:45 -0800 Subject: [PATCH] Formatting --- tool/src/js/gen.rs | 10 +++------- tool/src/js/mod.rs | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tool/src/js/gen.rs b/tool/src/js/gen.rs index 95b892b18..a1b23d0a4 100644 --- a/tool/src/js/gen.rs +++ b/tool/src/js/gen.rs @@ -24,8 +24,8 @@ use super::converter::{ForcePaddingStatus, JsToCConversionContext, StructBorrowC /// Represents list of imports that our Type is going to use. /// Resolved in [`TyGenContext::generate_base`] pub(super) struct Imports<'tcx> { - pub js : BTreeSet>, - pub ts : BTreeSet> + pub js: BTreeSet>, + pub ts: BTreeSet>, } /// Represents context for generating a Javascript class. @@ -56,11 +56,7 @@ impl<'tcx> TyGenContext<'_, 'tcx> { let i = self.imports.borrow(); let mut new_imports = Vec::new(); - let imports = if typescript { - i.ts.iter() - } else { - i.js.iter() - }; + let imports = if typescript { i.ts.iter() } else { i.js.iter() }; for import in imports { new_imports.push(self.formatter.fmt_import_statement( diff --git a/tool/src/js/mod.rs b/tool/src/js/mod.rs index 52953f286..d921e585e 100644 --- a/tool/src/js/mod.rs +++ b/tool/src/js/mod.rs @@ -104,7 +104,7 @@ pub(crate) fn run<'tcx>( errors: &errors, imports: RefCell::new(gen::Imports { js: BTreeSet::new(), - ts: BTreeSet::new() + ts: BTreeSet::new(), }), };