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

@ -6,7 +6,7 @@ use ruma::{
RoomId, UserId,
};
use serde::{de::DeserializeOwned, Serialize};
use std::{collections::HashMap, convert::TryFrom, sync::Arc};
use std::{collections::HashMap, sync::Arc};
use super::abstraction::Tree;

View file

@ -1,4 +1,4 @@
use std::{convert::TryInto, sync::Arc};
use std::sync::Arc;
use crate::{pdu::PduBuilder, Database};
use rocket::futures::{channel::mpsc, stream::StreamExt};

View file

@ -19,7 +19,7 @@ use ruma::{
};
use tracing::{error, info, warn};
use std::{convert::TryFrom, fmt::Debug, mem, sync::Arc};
use std::{fmt::Debug, mem, sync::Arc};
use super::abstraction::Tree;

View file

@ -35,7 +35,6 @@ use serde_json::value::to_raw_value;
use std::{
borrow::Cow,
collections::{BTreeMap, HashMap, HashSet},
convert::{TryFrom, TryInto},
fmt::Debug,
iter,
mem::size_of,

View file

@ -11,7 +11,6 @@ use ruma::{
};
use std::{
collections::{HashMap, HashSet},
convert::TryInto,
mem,
sync::Arc,
};

View file

@ -1,6 +1,5 @@
use std::{
collections::{BTreeMap, HashMap, HashSet},
convert::TryInto,
fmt::Debug,
sync::Arc,
time::{Duration, Instant},

View file

@ -11,12 +11,7 @@ use ruma::{
DeviceId, DeviceKeyAlgorithm, DeviceKeyId, MilliSecondsSinceUnixEpoch, RoomAliasId, UInt,
UserId,
};
use std::{
collections::BTreeMap,
convert::{TryFrom, TryInto},
mem,
sync::Arc,
};
use std::{collections::BTreeMap, mem, sync::Arc};
use tracing::warn;
use super::abstraction::Tree;