From d86ec95114b01e0b1c966e08907090766c1fc694 Mon Sep 17 00:00:00 2001 From: Sergey Grishakov Date: Fri, 16 Dec 2022 10:36:10 +0300 Subject: [PATCH] Fix clippy's needless_borrow --- src/view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view.rs b/src/view.rs index f8dd4ae..ff27118 100644 --- a/src/view.rs +++ b/src/view.rs @@ -59,7 +59,7 @@ fn format_datetime(filter_name: &str, value: &Value, pattern: &str) -> TeraResul Utc, ); let formatted = format!("{}", datetime.format(pattern)); - Ok(to_value(&formatted).unwrap()) + Ok(to_value(formatted).unwrap()) } fn human_datetime(value: &Value, _: &HashMap) -> TeraResult { @@ -85,7 +85,7 @@ fn render_welcome_markdown(value: &Value, _: &HashMap) -> TeraRes }, ], ); - Ok(to_value(&rendered).unwrap()) + Ok(to_value(rendered).unwrap()) } fn key_extra_info(value: &Value, _: &HashMap) -> TeraResult {