Browse Source

clippy fixes

pull/6491/head
Kyattsukuro 1 month ago
parent
commit
d79de9559c
  1. 2
      src/api/admin.rs

2
src/api/admin.rs

@ -394,7 +394,6 @@ async fn get_user_by_mail_json(mail: &str, _token: AdminToken, conn: DbConn) ->
.await .await
.into_iter() .into_iter()
.next() .next()
.clone()
.ok_or(Error::new("Could not build user JSON", "").with_code(Status::InternalServerError.code))?; .ok_or(Error::new("Could not build user JSON", "").with_code(Status::InternalServerError.code))?;
Ok(Json(user_json)) Ok(Json(user_json))
} else { } else {
@ -410,7 +409,6 @@ async fn get_user_json(user_id: UserId, _token: AdminToken, conn: DbConn) -> Jso
.await .await
.into_iter() .into_iter()
.next() .next()
.clone()
.ok_or(Error::new("Could not build user JSON", "").with_code(Status::InternalServerError.code))?; .ok_or(Error::new("Could not build user JSON", "").with_code(Status::InternalServerError.code))?;
Ok(Json(user_json)) Ok(Json(user_json))

Loading…
Cancel
Save