Remove underscore prefix from route methods to suppress clippy
This commit is contained in:
+3
-2
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user