diff --git a/src/utils/misc.rs b/src/utils/misc.rs index 9338eac..1d14e3c 100644 --- a/src/utils/misc.rs +++ b/src/utils/misc.rs @@ -57,11 +57,11 @@ impl Responder for Html { /// Read a file pub fn read_file(filename: FilePath, expected_file: MType) -> Option { - read_file_aux(filename, expected_file) + reader(filename, expected_file) } #[cached] -fn read_file_aux(filename: FilePath, expected_file: MType) -> Option { +fn reader(filename: FilePath, expected_file: MType) -> Option { let as_str = filename.to_string(); Path::new(&as_str) .extension()