Upgrade to Rust 2021

This commit is contained in:
Jonas Platte
2022-05-27 12:04:23 +02:00
parent a796b5e54d
commit 5f902851af
70 changed files with 42 additions and 134 deletions

View File

@@ -8,7 +8,7 @@ repository = "https://github.com/ruma/ruma"
readme = "README.md"
license = "MIT"
version = "0.7.0"
edition = "2018"
edition = "2021"
[package.metadata.docs.rs]
all-features = true

View File

@@ -10,7 +10,6 @@
use std::{
borrow::Borrow,
collections::{HashMap, HashSet},
convert::TryInto,
sync::{
atomic::{AtomicU64, Ordering::SeqCst},
Arc,

View File

@@ -1,4 +1,4 @@
use std::{borrow::Borrow, collections::BTreeSet, convert::TryFrom};
use std::{borrow::Borrow, collections::BTreeSet};
use js_int::{int, Int};
use ruma_common::{

View File

@@ -1,7 +1,6 @@
use std::{
borrow::Borrow,
collections::{BTreeMap, HashMap, HashSet},
convert::TryInto,
sync::{
atomic::{AtomicU64, Ordering::SeqCst},
Arc,