mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 06:42:20 +00:00
chore: Reformat with latest nightly
This commit is contained in:
6 files changed
+16
-10
No files matched your search
@@ -375,5 +375,6 @@ pub(crate) async fn is_ignored_invite(
|
||||
services
|
||||
.users
|
||||
.invite_filter_level(&sender_user, recipient_user)
|
||||
.await == FilterLevel::Ignore
|
||||
.await
|
||||
== FilterLevel::Ignore
|
||||
}
|
||||
@@ -725,7 +725,8 @@ async fn stripped_state_event(
|
||||
.get_field::<StateEventType>("type")
|
||||
.ok()
|
||||
.flatten()
|
||||
.as_ref() == Some(event_type)
|
||||
.as_ref()
|
||||
== Some(event_type)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -550,11 +550,12 @@ async fn user_may_see_summary(
|
||||
.services
|
||||
.state_cache
|
||||
.is_joined(querying_user, &summary.room_id)
|
||||
.await || self
|
||||
.services
|
||||
.state_cache
|
||||
.is_invited(querying_user, &summary.room_id)
|
||||
.await)
|
||||
.await
|
||||
|| self
|
||||
.services
|
||||
.state_cache
|
||||
.is_invited(querying_user, &summary.room_id)
|
||||
.await)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -198,7 +198,8 @@ pub fn get_or_start_federation_txn(&self, key: TxnKey) -> Result<FederationTxnSt
|
||||
&& let active_count = state
|
||||
.values()
|
||||
.filter(|v| matches!(v, TxnState::Active(_)))
|
||||
.count() && active_count >= max_active_txns
|
||||
.count()
|
||||
&& active_count >= max_active_txns
|
||||
{
|
||||
warn!(
|
||||
active = active_count,
|
||||
|
||||
@@ -373,7 +373,8 @@ pub async fn determine_registration_user_id(
|
||||
.services
|
||||
.appservice
|
||||
.is_exclusive_user_id(&user_id)
|
||||
.await && !emergency_mode_enabled
|
||||
.await
|
||||
&& !emergency_mode_enabled
|
||||
{
|
||||
return Err!(Request(Exclusive("Username is reserved by an appservice.")));
|
||||
}
|
||||
|
||||
@@ -81,7 +81,8 @@ pub async fn set_profile_field(
|
||||
if let Ok(canonical_profile) = to_canonical_object(full_profile) {
|
||||
if serde_json::to_string(&canonical_profile)
|
||||
.expect("should be able to serialize to string")
|
||||
.len() > MAX_PROFILE_LENGTH_BYTES
|
||||
.len()
|
||||
> MAX_PROFILE_LENGTH_BYTES
|
||||
{
|
||||
return Err!(
|
||||
"Profile data must not exceed {MAX_PROFILE_LENGTH_BYTES} bytes in \
|
||||
|
||||
Reference in new issue
Block a user