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()