Spacing/formatting adjustments.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-08 12:27:29 +00:00
parent ae707ab465
commit 23d188f612
8 changed files with 9 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ pub async fn make_user_admin(&self, user_id: &UserId) -> Result {
{
return Err!(debug_warn!("User is already joined in the admin room"));
}
if self
.services
.state_cache
@@ -132,6 +133,7 @@ pub async fn make_user_admin(&self, user_id: &UserId) -> Result {
.config
.admin_room_tag
.as_str();
if !room_tag.is_empty() {
if let Err(e) = self
.set_room_tag(&room_id, user_id, room_tag)

View File

@@ -428,6 +428,7 @@ impl Service {
.services
.write()
.expect("locked for writing");
let weak = services.map(Arc::downgrade);
*receiver = weak;
}