Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/bun_core/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,14 +1020,6 @@ where
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct InvalidCharacter;
Comment thread
robobun marked this conversation as resolved.
Resolved

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.
Expand Down
10 changes: 0 additions & 10 deletions src/bundler/bundle_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 0 additions & 6 deletions src/css/css_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 0 additions & 6 deletions src/css/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = Maybe<T, PrinterError>`,
Expand Down
Loading