diff --git a/src/bun_core/fmt.rs b/src/bun_core/fmt.rs index 86fbac07555b..131a09685aae 100644 --- a/src/bun_core/fmt.rs +++ b/src/bun_core/fmt.rs @@ -1020,14 +1020,6 @@ where #[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct InvalidCharacter; -impl core::fmt::Display for InvalidCharacter { - #[inline] - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.write_str("InvalidCharacter") - } -} -impl core::error::Error for InvalidCharacter {} - /// `WTF.parseDouble` — partial-match Latin-1 double parser. Returns `Ok` if /// any numeric prefix was consumed; `Err(InvalidCharacter)` on empty input or /// when no leading digit/sign was recognised. diff --git a/src/bundler/bundle_v2.rs b/src/bundler/bundle_v2.rs index db84c84224ae..faaf2e4a1c94 100644 --- a/src/bundler/bundle_v2.rs +++ b/src/bundler/bundle_v2.rs @@ -8088,16 +8088,6 @@ pub mod bv2_impl { } } - impl PartialEq for StableRef { - #[inline] - fn eq(&self, other: &Self) -> bool { - let (a_idx, a_ref) = (self.stable_source_index, self.r#ref); - let (b_idx, b_ref) = (other.stable_source_index, other.r#ref); - a_idx == b_idx && a_ref == b_ref - } - } - impl Eq for StableRef {} - #[derive(Clone, Copy, Default, PartialEq, Eq)] pub struct ImportTracker { pub(crate) source_index: Index, diff --git a/src/css/css_parser.rs b/src/css/css_parser.rs index 02e1717da06f..f93d34fc2717 100644 --- a/src/css/css_parser.rs +++ b/src/css/css_parser.rs @@ -5433,12 +5433,6 @@ pub mod color { pub enum ColorError { Parse, } - impl core::fmt::Display for ColorError { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.write_str("parse") - } - } - impl core::error::Error for ColorError {} /// Either an angle or a number. pub(crate) enum AngleOrNumber { diff --git a/src/css/lib.rs b/src/css/lib.rs index 059245a7c196..bf2617a0338b 100644 --- a/src/css/lib.rs +++ b/src/css/lib.rs @@ -165,12 +165,6 @@ impl PrintErr { "CSSPrintError" } } -impl core::fmt::Display for PrintErr { - fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { - f.write_str("CSS print error") - } -} -impl core::error::Error for PrintErr {} /// Return shape used by every `to_css` /// path. Distinct from `css_parser::PrintResult = Maybe`,