Remove underscore prefix from route methods to suppress clippy

This commit is contained in:
Kitaiti Makoto
2021-01-15 23:58:48 +09:00
parent 33fceddc08
commit f720dcbe9a
6 changed files with 13 additions and 11 deletions
+3 -2
View File
@@ -246,8 +246,9 @@ pub fn theme_files(file: PathBuf, _build_id: &RawStr) -> Option<ThemeFile> {
.map(ThemeFile)
}
#[get("/static/cached/<_build_id>/<file..>", rank = 2)]
pub fn plume_static_files(file: PathBuf, _build_id: &RawStr) -> Option<CachedFile> {
#[allow(unused_variables)]
#[get("/static/cached/<build_id>/<file..>", rank = 2)]
pub fn plume_static_files(file: PathBuf, build_id: &RawStr) -> Option<CachedFile> {
static_files(file)
}
#[get("/static/media/<file..>")]