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
@@ -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>,