diff options
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/filters/mod.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs index e790a7f..1667f40 100644 --- a/askama_shared/src/filters/mod.rs +++ b/askama_shared/src/filters/mod.rs @@ -248,12 +248,13 @@ pub fn capitalize(s: &dyn fmt::Display) -> Result<String> { &*s }) { None => Ok(s), - _ => match s.get_mut(1..).map(|s| { - s.make_ascii_lowercase(); - &*s - }) { - _ => Ok(s), - }, + _ => { + s.get_mut(1..).map(|s| { + s.make_ascii_lowercase(); + &*s + }); + Ok(s) + } } } |