Remove TryFrom, TryInto imports

They are no longer needed in the 2021 edition.
This commit is contained in:
Jonas Platte 2022-02-03 13:24:04 +01:00
parent b4755ba15b
commit abb4b4cf0b
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67
22 changed files with 11 additions and 33 deletions

View file

@ -1,4 +1,4 @@
use std::{collections::BTreeMap, convert::TryInto, sync::Arc};
use std::{collections::BTreeMap, sync::Arc};
use super::{DEVICE_ID_LENGTH, SESSION_ID_LENGTH, TOKEN_LENGTH};
use crate::{database::DatabaseGuard, pdu::PduBuilder, utils, ConduitResult, Error, Ruma};

View file

@ -3,7 +3,7 @@ use ruma::{
api::client::{error::ErrorKind, r0::context::get_context},
events::EventType,
};
use std::{collections::HashSet, convert::TryFrom};
use std::collections::HashSet;
#[cfg(feature = "conduit_bin")]
use rocket::get;

View file

@ -1,5 +1,3 @@
use std::convert::TryInto;
use crate::{database::DatabaseGuard, ConduitResult, Database, Error, Result, Ruma};
use ruma::{
api::{

View file

@ -9,7 +9,6 @@ use ruma::api::client::{
get_media_config,
},
};
use std::convert::TryInto;
#[cfg(feature = "conduit_bin")]
use rocket::{get, post};

View file

@ -30,7 +30,6 @@ use ruma::{
use serde_json::value::{to_raw_value, RawValue as RawJsonValue};
use std::{
collections::{hash_map::Entry, BTreeMap, HashMap, HashSet},
convert::{TryFrom, TryInto},
iter,
sync::{Arc, RwLock},
time::{Duration, Instant},

View file

@ -8,7 +8,6 @@ use ruma::{
};
use std::{
collections::{BTreeMap, HashSet},
convert::TryInto,
sync::Arc,
};

View file

@ -1,6 +1,6 @@
use crate::{database::DatabaseGuard, utils, ConduitResult, Ruma};
use ruma::api::client::r0::presence::{get_presence, set_presence};
use std::{convert::TryInto, time::Duration};
use std::time::Duration;
#[cfg(feature = "conduit_bin")]
use rocket::{get, put};

View file

@ -12,7 +12,7 @@ use ruma::{
events::{room::member::RoomMemberEventContent, EventType},
};
use serde_json::value::to_raw_value;
use std::{convert::TryInto, sync::Arc};
use std::sync::Arc;
#[cfg(feature = "conduit_bin")]
use rocket::{get, put};

View file

@ -27,7 +27,7 @@ use ruma::{
RoomAliasId, RoomId, RoomVersionId,
};
use serde_json::{json, value::to_raw_value};
use std::{cmp::max, collections::BTreeMap, convert::TryInto, sync::Arc};
use std::{cmp::max, collections::BTreeMap, sync::Arc};
use tracing::{info, warn};
#[cfg(feature = "conduit_bin")]

View file

@ -14,7 +14,6 @@ use ruma::{
};
use std::{
collections::{hash_map::Entry, BTreeMap, HashMap, HashSet},
convert::TryInto,
sync::Arc,
time::Duration,
};