From b0ef5a54cc4dbf89a22419600e4afa35fe67e079 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sun, 20 Apr 2025 19:15:51 -0700 Subject: [PATCH] Fix clippy::redundant_slicing --- src/renderer/html_handlebars/helpers/resources.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/renderer/html_handlebars/helpers/resources.rs b/src/renderer/html_handlebars/helpers/resources.rs index b6304eb4..e8818f05 100644 --- a/src/renderer/html_handlebars/helpers/resources.rs +++ b/src/renderer/html_handlebars/helpers/resources.rs @@ -39,12 +39,7 @@ impl HelperDef for ResourceHelper { let path_to_root = utils::fs::path_to_root(&base_path); out.write(&path_to_root)?; - out.write( - self.hash_map - .get(¶m[..]) - .map(|p| &p[..]) - .unwrap_or(¶m), - )?; + out.write(self.hash_map.get(param).map(|p| &p[..]).unwrap_or(¶m))?; Ok(()) } }