From 5d4000d86431b8abdc56ffe168973d18b44d747d Mon Sep 17 00:00:00 2001 From: Tyler K Date: Thu, 12 Dec 2024 15:28:49 -0800 Subject: [PATCH] Formatting again --- tool/src/js/converter.rs | 18 +++--------------- tool/src/js/mod.rs | 6 +----- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/tool/src/js/converter.rs b/tool/src/js/converter.rs index 0759fd3eb..110223070 100644 --- a/tool/src/js/converter.rs +++ b/tool/src/js/converter.rs @@ -70,11 +70,7 @@ impl<'tcx> TyGenContext<'_, 'tcx> { let type_name = self.formatter.fmt_type_name(opaque_id); // Add to the import list: - self.add_import( - type_name.clone(), - None, - super::gen::ImportUsage::Both, - ); + self.add_import(type_name.clone(), None, super::gen::ImportUsage::Both); if self.tcx.resolve_type(opaque_id).attrs().disable { self.errors @@ -92,11 +88,7 @@ impl<'tcx> TyGenContext<'_, 'tcx> { let type_name = self.formatter.fmt_type_name(id); // Add to the import list: - self.add_import( - type_name.clone(), - None, - super::gen::ImportUsage::Both, - ); + self.add_import(type_name.clone(), None, super::gen::ImportUsage::Both); if self.tcx.resolve_type(id).attrs().disable { self.errors @@ -109,11 +101,7 @@ impl<'tcx> TyGenContext<'_, 'tcx> { let type_name = self.formatter.fmt_type_name(enum_id); // Add to the import list: - self.add_import( - type_name.clone(), - None, - super::gen::ImportUsage::Both, - ); + self.add_import(type_name.clone(), None, super::gen::ImportUsage::Both); if self.tcx.resolve_type(enum_id).attrs().disable { self.errors diff --git a/tool/src/js/mod.rs b/tool/src/js/mod.rs index 56e4e535f..c539dbae0 100644 --- a/tool/src/js/mod.rs +++ b/tool/src/js/mod.rs @@ -159,11 +159,7 @@ pub(crate) fn run<'tcx>( let file_name = formatter.fmt_file_name(&context.type_name, &file_type); // Remove our self reference: - context.remove_import( - context.type_name.clone(), - None, - gen::ImportUsage::Both, - ); + context.remove_import(context.type_name.clone(), None, gen::ImportUsage::Both); // If we're a struct, remove importing our own StructType_obj definition if it exists. if matches!(type_def, TypeDef::Struct(..)) {