aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared
diff options
context:
space:
mode:
authorLibravatar Paolo Barbolini <paolo@paolo565.org>2020-02-24 09:30:17 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-02-24 09:58:51 +0100
commita10f87e7f64c977eae5d17fb4098b3d422c8c233 (patch)
tree4f232a58680d255eec8368459afe172cf6fe6283 /askama_shared
parent5d86086f557b72c37a5b50a891bc543b96ae2deb (diff)
downloadaskama-a10f87e7f64c977eae5d17fb4098b3d422c8c233.tar.gz
askama-a10f87e7f64c977eae5d17fb4098b3d422c8c233.tar.bz2
askama-a10f87e7f64c977eae5d17fb4098b3d422c8c233.zip
Fix askama_shared clippy warning
Diffstat (limited to '')
-rw-r--r--askama_shared/src/filters/mod.rs13
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)
+ }
}
}