about summary refs log tree commit diff
path: root/library/std/src/collections
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-05-09 11:12:32 +0200
committerMara Bos <m-ou.se@m-ou.se>2022-05-09 11:12:32 +0200
commit4f212f08cf0edb1fe990c8ca30fef09c27606682 (patch)
tree7283ef078a0cb3daae59335a452edfb4590862d9 /library/std/src/collections
parent8a2fe75d0e6e024aa434e5b9c40adb2567f362b8 (diff)
Use Rust 2021 prelude in std itself.
Diffstat (limited to 'library/std/src/collections')
-rw-r--r--library/std/src/collections/hash/map.rs2
-rw-r--r--library/std/src/collections/hash/set.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs
index e38368790e6..977714281fb 100644
--- a/library/std/src/collections/hash/map.rs
+++ b/library/std/src/collections/hash/map.rs
@@ -12,7 +12,7 @@ use crate::collections::TryReserveErrorKind;
 use crate::fmt::{self, Debug};
 #[allow(deprecated)]
 use crate::hash::{BuildHasher, Hash, Hasher, SipHasher13};
-use crate::iter::{FromIterator, FusedIterator};
+use crate::iter::FusedIterator;
 use crate::ops::Index;
 use crate::sys;
 
diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs
index fa471a3c3f3..13bba0a6fd8 100644
--- a/library/std/src/collections/hash/set.rs
+++ b/library/std/src/collections/hash/set.rs
@@ -7,7 +7,7 @@ use crate::borrow::Borrow;
 use crate::collections::TryReserveError;
 use crate::fmt;
 use crate::hash::{BuildHasher, Hash};
-use crate::iter::{Chain, FromIterator, FusedIterator};
+use crate::iter::{Chain, FusedIterator};
 use crate::ops::{BitAnd, BitOr, BitXor, Sub};
 
 use super::map::{map_try_reserve_error, RandomState};