aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ser.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ser.rs b/src/ser.rs
index fb9f424..863bd75 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -310,11 +310,11 @@ impl<'a> Serializer<'a> {
/// ]
/// ```
pub fn pretty_array(&mut self, value: bool) -> &mut Self {
- self.settings.array = Some(if value {
- ArraySettings::pretty()
+ self.settings.array = if value {
+ Some(ArraySettings::pretty())
} else {
- ArraySettings::default()
- });
+ None
+ };
self
}