chore: get rid of warnings

This commit is contained in:
Timo Kösters 2021-03-18 18:33:43 +01:00
parent 7b3fe88345
commit f775c76d8a
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
11 changed files with 24 additions and 33 deletions

View file

@ -3,7 +3,7 @@ use get_profile_information::v1::ProfileField;
use http::header::{HeaderValue, AUTHORIZATION, HOST};
use log::{debug, error, info, warn};
use regex::Regex;
use rocket::{get, post, put, response::content::Json, State};
use rocket::{response::content::Json, State};
use ruma::{
api::{
client::error::ErrorKind,
@ -28,7 +28,7 @@ use ruma::{
use state_res::{Event, EventMap, StateMap};
use std::{
collections::{BTreeMap, BTreeSet, HashMap},
convert::{TryFrom, TryInto},
convert::TryFrom,
fmt::Debug,
future::Future,
net::{IpAddr, SocketAddr},
@ -38,6 +38,9 @@ use std::{
time::{Duration, SystemTime},
};
#[cfg(feature = "conduit_bin")]
use rocket::{get, post, put};
#[tracing::instrument(skip(globals))]
pub async fn send_request<T: OutgoingRequest>(
globals: &crate::database::globals::Globals,