From 6d3caebc79f340d26262adc2ba789b10da4108aa Mon Sep 17 00:00:00 2001 From: Matthieu Date: Sun, 19 Sep 2021 18:12:41 +0400 Subject: shard + implementation of the payload deserialization & restructure --- common/rust/src/error.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'common/rust/src/error.rs') 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 - } -} - -- cgit v1.2.3