trick clippy to not raise a bad warning
This commit is contained in:
parent
47688337dd
commit
1b44727749
1 changed files with 5 additions and 1 deletions
|
@ -56,8 +56,12 @@ impl Responder for Html {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Read a file
|
/// Read a file
|
||||||
#[cached]
|
|
||||||
pub fn read_file(filename: FilePath, expected_file: MType) -> Option<File> {
|
pub fn read_file(filename: FilePath, expected_file: MType) -> Option<File> {
|
||||||
|
read_file_aux(filename, expected_file)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cached]
|
||||||
|
fn read_file_aux(filename: FilePath, expected_file: MType) -> Option<File> {
|
||||||
let as_str = filename.to_string();
|
let as_str = filename.to_string();
|
||||||
Path::new(&as_str)
|
Path::new(&as_str)
|
||||||
.extension()
|
.extension()
|
||||||
|
|
Loading…
Reference in a new issue