diff --git a/Cargo.lock b/Cargo.lock index c11bbca..b2c3a5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -169,7 +169,6 @@ dependencies = [ "rayon", "serde", "serde_json", - "thiserror", "tracing", "tracing-perfetto", "tracing-subscriber", diff --git a/Cargo.toml b/Cargo.toml index 21a971b..b65d2d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,6 @@ pastey = "0.2.1" rayon = "1.11.0" serde = { version = "1.0.228", features = ["derive"], optional = true } serde_json = { version = "1.0.145", optional = true } -thiserror = "2.0.17" tracing = { version = "0.1.41", optional = true } tracing-perfetto = { version = "0.1.5", optional = true } tracing-subscriber = { version = "0.3.20", optional = true } diff --git a/src/data/block.rs b/src/data/block.rs index d84bce1..a8c7d3f 100644 --- a/src/data/block.rs +++ b/src/data/block.rs @@ -1,6 +1,4 @@ -use std::{fmt, fmt::Display}; - -use thiserror::Error; +use std::{error::Error, fmt::{self, Display}}; use crate::data::{ plane::PlaneOffset, @@ -255,9 +253,11 @@ impl BlockSize { } } -#[derive(Debug, Copy, Clone, Error, Eq, PartialEq)] +#[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct InvalidBlockSize; +impl Error for InvalidBlockSize {} + impl Display for InvalidBlockSize { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("invalid block size")