diff --git a/Cargo.toml b/Cargo.toml index a9bfa0a..ffdb380 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ __test_data = [] [dependencies] ahash = "0.6.1" smartstring = "0.2.5" -thiserror = "1.0.22" [dev-dependencies] bencher = "0.1.5" diff --git a/src/lib.rs b/src/lib.rs index 584e1a2..b5df6bb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,11 +1,8 @@ -use std::io; -use std::num::ParseIntError; use std::ops::{Index, Range}; use std::str; use ahash::AHashMap as HashMap; use smartstring::alias::String; -use thiserror::Error; #[cfg(feature = "__test_data")] pub mod test_data; @@ -186,22 +183,6 @@ impl Index> for Ascii { } } -#[derive(Debug, Error)] -pub enum ParseError { - #[error("I/O error: {0}")] - Io(#[from] io::Error), - #[error("integer parsing error: {0}")] - ParseInt(#[from] ParseIntError), - #[error("{0}")] - String(String), -} - -impl From for ParseError { - fn from(s: std::string::String) -> Self { - ParseError::String(s.into()) - } -} - const DEFAULT_LIMIT: usize = 24; const DEFAULT_TOTAL: f64 = 1_024_908_267_229.0; const SEGMENT_SIZE: usize = 250;