From 833fc4a31ffa4e8d403e8d6034b83947b2e6b73b Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Tue, 4 Jun 2024 08:20:58 +0200 Subject: [PATCH] fix fmt --- minijinja/src/filters.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/minijinja/src/filters.rs b/minijinja/src/filters.rs index 91a284be..5fc986b8 100644 --- a/minijinja/src/filters.rs +++ b/minijinja/src/filters.rs @@ -566,13 +566,11 @@ mod builtins { Some(s) => { let elements = s.split(split).map(Value::from).collect::>(); Ok(Value::from(elements)) - }, - None => { - Err(Error::new( - ErrorKind::InvalidOperation, - format!("cannot split value of type {}", val.kind()), - )) } + None => Err(Error::new( + ErrorKind::InvalidOperation, + format!("cannot split value of type {}", val.kind()), + )), } }