Remove now unused error type

This commit is contained in:
Dirkjan Ochtman 2020-12-07 14:38:31 +01:00
parent 2ab57ca0b1
commit adf7995adb
2 changed files with 0 additions and 20 deletions

View File

@ -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"

View File

@ -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<Range<usize>> 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<std::string::String> 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;