feat: federated room directory

This commit is contained in:
timokoesters 2020-04-25 11:47:32 +02:00
parent 120b6f4b95
commit 720cc0cffc
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
5 changed files with 43 additions and 66 deletions

View file

@ -6,15 +6,9 @@ use rocket::{
Outcome::*,
Request, State,
};
use ruma_api::{
Endpoint
};
use ruma_api::Endpoint;
use ruma_identifiers::UserId;
use std::{
convert::{TryInto},
io::Cursor,
ops::Deref,
};
use std::{convert::TryInto, io::Cursor, ops::Deref};
use tokio::io::AsyncReadExt;
const MESSAGE_LIMIT: u64 = 65535;
@ -27,8 +21,7 @@ pub struct Ruma<T> {
pub json_body: serde_json::Value,
}
impl<'a, T: Endpoint> FromData<'a> for Ruma<T>
{
impl<'a, T: Endpoint> FromData<'a> for Ruma<T> {
type Error = (); // TODO: Better error handling
type Owned = Data;
type Borrowed = Self::Owned;