From 1b44727749ff44a211c94adb30000565663abaae Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 6 Dec 2024 09:18:36 +0100 Subject: [PATCH] trick clippy to not raise a bad warning --- src/utils/misc.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/misc.rs b/src/utils/misc.rs index 7785bf5..9338eac 100644 --- a/src/utils/misc.rs +++ b/src/utils/misc.rs @@ -56,8 +56,12 @@ impl Responder for Html { } /// Read a file -#[cached] pub fn read_file(filename: FilePath, expected_file: MType) -> Option { + read_file_aux(filename, expected_file) +} + +#[cached] +fn read_file_aux(filename: FilePath, expected_file: MType) -> Option { let as_str = filename.to_string(); Path::new(&as_str) .extension()