mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: Clippy fixes
This commit is contained in:
@@ -367,7 +367,7 @@ pub async fn full_user_deactivate(
|
|||||||
let room_power_levels = services
|
let room_power_levels = services
|
||||||
.rooms
|
.rooms
|
||||||
.state_accessor
|
.state_accessor
|
||||||
.get_room_power_levels(&room_id)
|
.get_room_power_levels(room_id)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
let user_can_demote_self =
|
let user_can_demote_self =
|
||||||
@@ -394,7 +394,7 @@ pub async fn full_user_deactivate(
|
|||||||
// TODO: Redact all messages sent by the user in the room
|
// TODO: Redact all messages sent by the user in the room
|
||||||
}
|
}
|
||||||
|
|
||||||
for (pdu, room_id) in pdu_queue.into_iter() {
|
for (pdu, room_id) in pdu_queue {
|
||||||
let state_lock = services.rooms.state.mutex.lock(room_id.as_str()).await;
|
let state_lock = services.rooms.state.mutex.lock(room_id.as_str()).await;
|
||||||
|
|
||||||
let _ = services
|
let _ = services
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ use crate::{State, router::auth::CheckAuth, service::appservice::RegistrationInf
|
|||||||
/// Query parameters needed to authenticate requests
|
/// Query parameters needed to authenticate requests
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub(super) struct AuthQueryParams {
|
pub(super) struct AuthQueryParams {
|
||||||
pub(super) access_token: Option<String>,
|
|
||||||
pub(super) user_id: Option<String>,
|
pub(super) user_id: Option<String>,
|
||||||
/// Device ID for appservice device masquerading (MSC3202/MSC4190).
|
/// Device ID for appservice device masquerading (MSC3202/MSC4190).
|
||||||
/// Can be provided as `device_id` or `org.matrix.msc3202.device_id`.
|
/// Can be provided as `device_id` or `org.matrix.msc3202.device_id`.
|
||||||
|
|||||||
@@ -19,13 +19,6 @@ use service::{
|
|||||||
|
|
||||||
use crate::{router::args::AuthQueryParams, service::appservice::RegistrationInfo};
|
use crate::{router::args::AuthQueryParams, service::appservice::RegistrationInfo};
|
||||||
|
|
||||||
enum Token {
|
|
||||||
Appservice(Box<RegistrationInfo>),
|
|
||||||
User((OwnedUserId, OwnedDeviceId)),
|
|
||||||
Invalid,
|
|
||||||
None,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
pub(super) struct Auth {
|
pub(super) struct Auth {
|
||||||
pub(super) origin: Option<OwnedServerName>,
|
pub(super) origin: Option<OwnedServerName>,
|
||||||
|
|||||||
Reference in New Issue
Block a user