summaryrefslogtreecommitdiff
path: root/common/rust/src/error.rs
diff options
context:
space:
mode:
authorMatthieu <matthieu@developershouse.xyz>2021-09-19 18:12:41 +0400
committerMatthieu <matthieu@developershouse.xyz>2021-09-19 18:12:41 +0400
commit6d3caebc79f340d26262adc2ba789b10da4108aa (patch)
tree208e1bfe0cf036c0561555e0fc35beabfd261375 /common/rust/src/error.rs
parent88300c45202a228d54c1e99dd3b295ef3fb9aabd (diff)
shard + implementation of the payload deserialization & restructure
Diffstat (limited to 'common/rust/src/error.rs')
-rw-r--r--common/rust/src/error.rs8
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
- }
-}
-