Added allows for unused things.
This commit is contained in:
parent
77e5072f20
commit
39b6351c85
7 changed files with 11 additions and 11 deletions
|
|
@ -70,7 +70,7 @@ async fn communities_get(req: HttpRequest, ssl: web::Data<bool>) -> impl Respond
|
|||
async fn communities_add(
|
||||
req: HttpRequest,
|
||||
ssl: web::Data<bool>,
|
||||
payload: web::Json<Value>,
|
||||
#[allow(unused_variables)] payload: web::Json<Value>,
|
||||
) -> impl Responder {
|
||||
if !is_allowed_req(&req, *ssl.get_ref()) {
|
||||
return forbidden();
|
||||
|
|
|
|||
Loading…
Reference in a new issue