diff options
Diffstat (limited to 'lockchain-core/src/traits.rs')
-rw-r--r-- | lockchain-core/src/traits.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lockchain-core/src/traits.rs b/lockchain-core/src/traits.rs index 13fc1b3..9cd77b0 100644 --- a/lockchain-core/src/traits.rs +++ b/lockchain-core/src/traits.rs @@ -188,7 +188,7 @@ where /// Auto-implement this trait to serialise types to json pub trait AutoEncoder: Serialize + DeserializeOwned { fn encode(&self) -> Result<String, SerdeError> { - serde_json::to_string_pretty(self) + serde_json::to_string(self) } fn decode(s: &str) -> Result<Self, SerdeError> { |