Remove underscore prefix from route methods to suppress clippy
This commit is contained in:
+3
-2
@@ -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
@@ -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