From ff4d1600816f45d35bc75382ac919312aa933559 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 14 May 2025 07:49:52 +0000 Subject: [PATCH] style(span): list exports individually (#11025) Pure code style refactor. List `pub` exports individually. Personally, I find this style clearer. --- crates/oxc_span/src/lib.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/crates/oxc_span/src/lib.rs b/crates/oxc_span/src/lib.rs index 02bd38f26977e..18d86d4d41ab7 100644 --- a/crates/oxc_span/src/lib.rs +++ b/crates/oxc_span/src/lib.rs @@ -10,15 +10,13 @@ mod compact_str; mod source_type; mod span; -pub use crate::{ - atom::Atom, - cmp::ContentEq, - compact_str::{CompactStr, MAX_INLINE_LEN as ATOM_MAX_INLINE_LEN}, - source_type::{ - Language, LanguageVariant, ModuleKind, SourceType, UnknownExtension, VALID_EXTENSIONS, - }, - span::{GetSpan, GetSpanMut, SPAN, Span}, +pub use atom::Atom; +pub use cmp::ContentEq; +pub use compact_str::{CompactStr, MAX_INLINE_LEN as ATOM_MAX_INLINE_LEN}; +pub use source_type::{ + Language, LanguageVariant, ModuleKind, SourceType, UnknownExtension, VALID_EXTENSIONS, }; +pub use span::{GetSpan, GetSpanMut, SPAN, Span}; mod generated { #[cfg(debug_assertions)]