From e3415a500d596cc1406f8d067a7b16998fe784cb Mon Sep 17 00:00:00 2001 From: Ginger Date: Sun, 14 Sep 2025 13:23:52 -0400 Subject: [PATCH] chore: Code cleanup --- src/api/client/profile.rs | 2 +- src/api/client/unstable.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/client/profile.rs b/src/api/client/profile.rs index bf6a6d93..0b291db7 100644 --- a/src/api/client/profile.rs +++ b/src/api/client/profile.rs @@ -285,7 +285,7 @@ pub(crate) async fn get_profile_route( return Err!(Request(NotFound("Profile was not found."))); } - let mut custom_profile_fields: BTreeMap = services + let custom_profile_fields: BTreeMap = services .users .all_profile_keys(&body.user_id) .collect() diff --git a/src/api/client/unstable.rs b/src/api/client/unstable.rs index f702de9c..ab967bed 100644 --- a/src/api/client/unstable.rs +++ b/src/api/client/unstable.rs @@ -2,13 +2,12 @@ use std::collections::BTreeMap; use axum::extract::State; use axum_client_ip::InsecureClientIp; -use conduwuit::{Err, Error, Result}; +use conduwuit::{Err, Result}; use futures::StreamExt; use ruma::{ OwnedRoomId, api::{ client::{ - error::ErrorKind, membership::mutual_rooms, profile::{delete_profile_key, get_profile_key, set_profile_key}, },