summaryrefslogtreecommitdiff
path: root/src/api/server_server.rs
diff options
context:
space:
mode:
authorTimo Kösters <timo@koesters.xyz>2022-10-08 13:03:07 +0200
committerNyaaori <+@nyaaori.cat>2022-10-10 14:02:02 +0200
commit7822a385bbbdc608501a93499b83a3ca89fafb0f (patch)
treedae2f968d226a18687d57c000f702ba25fb424d4 /src/api/server_server.rs
parentd5b4754cf47982c91898bde9a9bb61a8cbf6ab40 (diff)
downloadconduit-7822a385bbbdc608501a93499b83a3ca89fafb0f.zip
cargo fmt
Diffstat (limited to 'src/api/server_server.rs')
-rw-r--r--src/api/server_server.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/api/server_server.rs b/src/api/server_server.rs
index bcf893c..66aac9e 100644
--- a/src/api/server_server.rs
+++ b/src/api/server_server.rs
@@ -4,7 +4,7 @@ use crate::{
services, utils, Error, PduEvent, Result, Ruma,
};
use axum::{response::IntoResponse, Json};
-use futures_util::{StreamExt};
+use futures_util::StreamExt;
use get_profile_information::v1::ProfileField;
use http::header::{HeaderValue, AUTHORIZATION};
@@ -15,10 +15,7 @@ use ruma::{
authorization::get_event_authorization,
device::get_devices::{self, v1::UserDevice},
directory::{get_public_rooms, get_public_rooms_filtered},
- discovery::{
- get_server_keys,
- get_server_version, ServerSigningKeys, VerifyKey,
- },
+ discovery::{get_server_keys, get_server_version, ServerSigningKeys, VerifyKey},
event::{get_event, get_missing_events, get_room_state, get_room_state_ids},
keys::{claim_keys, get_keys},
membership::{
@@ -46,13 +43,13 @@ use ruma::{
},
receipt::ReceiptType,
serde::{Base64, JsonObject, Raw},
- signatures::{CanonicalJsonValue},
- to_device::DeviceIdOrAllDevices, EventId, MilliSecondsSinceUnixEpoch, RoomId, ServerName,
- ServerSigningKeyId,
+ signatures::CanonicalJsonValue,
+ to_device::DeviceIdOrAllDevices,
+ EventId, MilliSecondsSinceUnixEpoch, RoomId, ServerName, ServerSigningKeyId,
};
use serde_json::value::{to_raw_value, RawValue as RawJsonValue};
use std::{
- collections::{BTreeMap},
+ collections::BTreeMap,
fmt::Debug,
mem,
net::{IpAddr, SocketAddr},