diff --git a/epi/src/lib.rs b/epi/src/lib.rs index 7a3a6cd6..3cd5b7db 100644 --- a/epi/src/lib.rs +++ b/epi/src/lib.rs @@ -413,10 +413,7 @@ pub fn get_value(storage: &dyn Storage, key: &st /// Serialize the given value as [RON](https://github.com/ron-rs/ron) and store with the given key. #[cfg(feature = "ron")] pub fn set_value(storage: &mut dyn Storage, key: &str, value: &T) { - storage.set_string( - key, - ron::ser::to_string_pretty(value, Default::default()).unwrap(), - ); + storage.set_string(key, ron::ser::to_string(value).unwrap()); } /// [`Storage`] key used for app