diff options
author | Katharina Fey <kookie@spacekookie.de> | 2018-09-16 12:29:32 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2018-09-16 12:29:32 +0100 |
commit | 366bfc313d84c5eb39896a3cd0a2d344740969f2 (patch) | |
tree | 60487bb74b7a30171cad47ec14ce082c6eabcf6c /lockchain-core/src/traits.rs | |
parent | 39a9b4ab3f1ab8a4c79962e1de78204faaf10abe (diff) |
Assorted changes
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> { |