1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-09-30 18:42:05 +00:00

chore: Code cleanup

This commit is contained in:
Ginger 2025-09-14 13:23:52 -04:00 committed by nex
parent e6fd3c970b
commit e3415a500d
2 changed files with 2 additions and 3 deletions

View file

@ -285,7 +285,7 @@ pub(crate) async fn get_profile_route(
return Err!(Request(NotFound("Profile was not found."))); return Err!(Request(NotFound("Profile was not found.")));
} }
let mut custom_profile_fields: BTreeMap<String, serde_json::Value> = services let custom_profile_fields: BTreeMap<String, serde_json::Value> = services
.users .users
.all_profile_keys(&body.user_id) .all_profile_keys(&body.user_id)
.collect() .collect()

View file

@ -2,13 +2,12 @@ use std::collections::BTreeMap;
use axum::extract::State; use axum::extract::State;
use axum_client_ip::InsecureClientIp; use axum_client_ip::InsecureClientIp;
use conduwuit::{Err, Error, Result}; use conduwuit::{Err, Result};
use futures::StreamExt; use futures::StreamExt;
use ruma::{ use ruma::{
OwnedRoomId, OwnedRoomId,
api::{ api::{
client::{ client::{
error::ErrorKind,
membership::mutual_rooms, membership::mutual_rooms,
profile::{delete_profile_key, get_profile_key, set_profile_key}, profile::{delete_profile_key, get_profile_key, set_profile_key},
}, },