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..>")]
+3 -2
View File
@@ -378,9 +378,10 @@ pub struct UpdateUserForm {
pub hide_custom_css: bool,
}
#[put("/@/<_name>/edit", data = "<form>")]
#[allow(unused_variables)]
#[put("/@/<name>/edit", data = "<form>")]
pub fn update(
_name: String,
name: String,
conn: DbConn,
mut user: User,
form: LenientForm<UpdateUserForm>,