From a10f87e7f64c977eae5d17fb4098b3d422c8c233 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Mon, 24 Feb 2020 09:30:17 +0100 Subject: Fix askama_shared clippy warning --- askama_shared/src/filters/mod.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'askama_shared/src') 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 { &*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) + } } } -- cgit