Apply clippy suggestions

Use the latest rust version

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2022-03-15 14:03:08 +05:30
parent efc1a9df58
commit 0305742d6d
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ pub async fn pretter_retrieve_inner(
id: &str,
ext: &str,
) -> ResponseWrapper<Template> {
let filepath = Path::new(&get_upload_dir()).join(id.to_string());
let filepath = Path::new(&get_upload_dir()).join(id);
let modified_date =
match fs::metadata(&filepath).and_then(|m| m.modified()) {