diff options
Diffstat (limited to '')
| -rw-r--r-- | deepcrow/src/error.rs (renamed from crimtag/src/error.rs) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crimtag/src/error.rs b/deepcrow/src/error.rs index bbb5d6f..8fe21f0 100644 --- a/crimtag/src/error.rs +++ b/deepcrow/src/error.rs | |||
| @@ -5,12 +5,12 @@ use std::fmt; | |||
| 5 | use crate::position::*; | 5 | use crate::position::*; |
| 6 | 6 | ||
| 7 | #[derive(Debug)] | 7 | #[derive(Debug)] |
| 8 | pub struct CrimError { | 8 | pub struct DeepCrowError { |
| 9 | position: Position, | 9 | position: Position, |
| 10 | what: String, | 10 | what: String, |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | impl CrimError { | 13 | impl DeepCrowError { |
| 14 | pub fn parse( position: Position, what: String ) -> Self { | 14 | pub fn parse( position: Position, what: String ) -> Self { |
| 15 | Self { | 15 | Self { |
| 16 | position, | 16 | position, |
| @@ -48,12 +48,12 @@ impl CrimError { | |||
| 48 | } | 48 | } |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | impl fmt::Display for CrimError { | 51 | impl fmt::Display for DeepCrowError { |
| 52 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | 52 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 53 | write!(f, "Error parsing input: {}", "yeah") | 53 | write!(f, "Error parsing input: {}", "yeah") |
| 54 | } | 54 | } |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | impl Error for CrimError { } | 57 | impl Error for DeepCrowError { } |
| 58 | 58 | ||
| 59 | pub type CrimResult<T> = Result<T, CrimError>; | 59 | pub type Result<T> = std::result::Result<T, DeepCrowError>; |
