diff options
author | Paolo Barbolini <paolo@paolo565.org> | 2020-02-24 09:30:17 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-02-24 09:58:51 +0100 |
commit | a10f87e7f64c977eae5d17fb4098b3d422c8c233 (patch) | |
tree | 4f232a58680d255eec8368459afe172cf6fe6283 /askama_shared | |
parent | 5d86086f557b72c37a5b50a891bc543b96ae2deb (diff) | |
download | askama-a10f87e7f64c977eae5d17fb4098b3d422c8c233.tar.gz askama-a10f87e7f64c977eae5d17fb4098b3d422c8c233.tar.bz2 askama-a10f87e7f64c977eae5d17fb4098b3d422c8c233.zip |
Fix askama_shared clippy warning
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) + } } } |