summaryrefslogtreecommitdiff
path: root/deepcrow/src/error.rs
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2026-08-19 10:06:25 -0700
committerMike Buland <mike@xagasoft.com>2026-08-19 10:06:25 -0700
commit5602585e7afe431f25e68f30ac54761db2a710e5 (patch)
tree94461a3d5eba1ce0a6402e2c07cdfc9facf21d76 /deepcrow/src/error.rs
parentba96bd8a4a1583edd3677dd613c89504d9ce88cf (diff)
downloaddeepcrow-5602585e7afe431f25e68f30ac54761db2a710e5.tar.gz
deepcrow-5602585e7afe431f25e68f30ac54761db2a710e5.tar.bz2
deepcrow-5602585e7afe431f25e68f30ac54761db2a710e5.tar.xz
deepcrow-5602585e7afe431f25e68f30ac54761db2a710e5.zip
Renamed to DeepCrow
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;
5use crate::position::*; 5use crate::position::*;
6 6
7#[derive(Debug)] 7#[derive(Debug)]
8pub struct CrimError { 8pub struct DeepCrowError {
9 position: Position, 9 position: Position,
10 what: String, 10 what: String,
11} 11}
12 12
13impl CrimError { 13impl 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
51impl fmt::Display for CrimError { 51impl 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
57impl Error for CrimError { } 57impl Error for DeepCrowError { }
58 58
59pub type CrimResult<T> = Result<T, CrimError>; 59pub type Result<T> = std::result::Result<T, DeepCrowError>;