diff options
Diffstat (limited to 'common/rust/src/error.rs')
| -rw-r--r-- | common/rust/src/error.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/common/rust/src/error.rs b/common/rust/src/error.rs index dcb7a54..b602940 100644 --- a/common/rust/src/error.rs +++ b/common/rust/src/error.rs @@ -1,5 +1,6 @@ use std::fmt; +#[derive(Debug)] pub struct NovaError { pub message: String, } @@ -9,10 +10,3 @@ impl fmt::Display for NovaError { write!(f, "An error occured wihind the nova system: {}", self.message) // user-facing output } } - -impl fmt::Debug for NovaError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{{ file: {}, line: {} }}", file!(), line!()) // programmer-facing output - } -} - |
