summaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/errors.rs b/src/errors.rs
deleted file mode 100644
index 5713aa0..0000000
--- a/src/errors.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use std::error::Error;
-use std::fmt;
-
-#[derive(Debug)]
-pub struct ParseRangeError {
- source_str: String,
-}
-
-impl ParseRangeError {
- pub fn new(source_str: &str) -> Self {
- ParseRangeError {
- source_str: String::from(source_str),
- }
- }
-}
-
-impl fmt::Display for ParseRangeError {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "{}", self.source_str)
- }
-}
-
-impl Error for ParseRangeError {}