summaryrefslogtreecommitdiffstats
path: root/src/ser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ser.rs')
-rw-r--r--src/ser.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ser.rs b/src/ser.rs
index c3b93d6..39c02b9 100644
--- a/src/ser.rs
+++ b/src/ser.rs
@@ -48,10 +48,9 @@ impl ConfigSerializer {
self.keys
.get_mut(len - 1)
.map(|pair| pair.1 = pair.1.map(|i| i + 1).or(Some(0)))
- .ok_or_else(|| ConfigError::Message(format!(
- "last key is not found in {} keys",
- len
- )))
+ .ok_or_else(|| {
+ ConfigError::Message(format!("last key is not found in {} keys", len))
+ })
} else {
Err(ConfigError::Message("keys is empty".to_string()))
}