diff --git a/src/collections/binary_heap/extend.rs b/src/collections/binary_heap/extend.rs index 17098d9..8538f9b 100644 --- a/src/collections/binary_heap/extend.rs +++ b/src/collections/binary_heap/extend.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::BinaryHeap; +use std::pin::Pin; use crate::prelude::*; use crate::stream::{Extend, IntoStream}; diff --git a/src/collections/binary_heap/from_stream.rs b/src/collections/binary_heap/from_stream.rs index 96e5547..c8e44e9 100644 --- a/src/collections/binary_heap/from_stream.rs +++ b/src/collections/binary_heap/from_stream.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::BinaryHeap; +use std::pin::Pin; use crate::stream::{Extend, FromStream, IntoStream}; diff --git a/src/collections/btree_map/extend.rs b/src/collections/btree_map/extend.rs index 2e20848..ae02c42 100644 --- a/src/collections/btree_map/extend.rs +++ b/src/collections/btree_map/extend.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::BTreeMap; +use std::pin::Pin; use crate::prelude::*; use crate::stream::{Extend, IntoStream}; diff --git a/src/collections/btree_map/from_stream.rs b/src/collections/btree_map/from_stream.rs index cdc51b9..bd80c06 100644 --- a/src/collections/btree_map/from_stream.rs +++ b/src/collections/btree_map/from_stream.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::BTreeMap; +use std::pin::Pin; use crate::stream::{Extend, FromStream, IntoStream}; diff --git a/src/collections/btree_set/extend.rs b/src/collections/btree_set/extend.rs index 2fd1d1d..ccf0337 100644 --- a/src/collections/btree_set/extend.rs +++ b/src/collections/btree_set/extend.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::BTreeSet; +use std::pin::Pin; use crate::prelude::*; use crate::stream::{Extend, IntoStream}; diff --git a/src/collections/btree_set/from_stream.rs b/src/collections/btree_set/from_stream.rs index b4b654f..bd2a744 100644 --- a/src/collections/btree_set/from_stream.rs +++ b/src/collections/btree_set/from_stream.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::BTreeSet; +use std::pin::Pin; use crate::stream::{Extend, FromStream, IntoStream}; diff --git a/src/collections/hash_map/extend.rs b/src/collections/hash_map/extend.rs index 68bc79e..5f96b8a 100644 --- a/src/collections/hash_map/extend.rs +++ b/src/collections/hash_map/extend.rs @@ -1,13 +1,15 @@ -use std::pin::Pin; -use std::hash::{Hash, BuildHasher}; use std::collections::HashMap; +use std::hash::{BuildHasher, Hash}; +use std::pin::Pin; use crate::prelude::*; use crate::stream::{Extend, IntoStream}; impl Extend<(K, V)> for HashMap -where K: Eq + Hash, - H: BuildHasher + Default { +where + K: Eq + Hash, + H: BuildHasher + Default, +{ fn stream_extend<'a, S: IntoStream + 'a>( &'a mut self, stream: S, diff --git a/src/collections/hash_map/from_stream.rs b/src/collections/hash_map/from_stream.rs index f9295cb..2b7bbc9 100644 --- a/src/collections/hash_map/from_stream.rs +++ b/src/collections/hash_map/from_stream.rs @@ -1,12 +1,14 @@ -use std::pin::Pin; -use std::hash::{Hash, BuildHasher}; use std::collections::HashMap; +use std::hash::{BuildHasher, Hash}; +use std::pin::Pin; use crate::stream::{Extend, FromStream, IntoStream}; impl FromStream<(K, V)> for HashMap -where K: Eq + Hash, - H: BuildHasher + Default { +where + K: Eq + Hash, + H: BuildHasher + Default, +{ #[inline] fn from_stream<'a, S: IntoStream>( stream: S, diff --git a/src/collections/hash_set/extend.rs b/src/collections/hash_set/extend.rs index b06e7b8..72400e1 100644 --- a/src/collections/hash_set/extend.rs +++ b/src/collections/hash_set/extend.rs @@ -1,13 +1,15 @@ -use std::pin::Pin; -use std::hash::{Hash, BuildHasher}; use std::collections::HashSet; +use std::hash::{BuildHasher, Hash}; +use std::pin::Pin; use crate::prelude::*; use crate::stream::{Extend, IntoStream}; impl Extend for HashSet -where T: Eq + Hash, - H: BuildHasher + Default { +where + T: Eq + Hash, + H: BuildHasher + Default, +{ fn stream_extend<'a, S: IntoStream + 'a>( &'a mut self, stream: S, diff --git a/src/collections/hash_set/from_stream.rs b/src/collections/hash_set/from_stream.rs index 3714ae8..42447fe 100644 --- a/src/collections/hash_set/from_stream.rs +++ b/src/collections/hash_set/from_stream.rs @@ -1,12 +1,14 @@ -use std::pin::Pin; -use std::hash::{Hash, BuildHasher}; use std::collections::HashSet; +use std::hash::{BuildHasher, Hash}; +use std::pin::Pin; use crate::stream::{Extend, FromStream, IntoStream}; impl FromStream for HashSet -where T: Eq + Hash, - H: BuildHasher + Default { +where + T: Eq + Hash, + H: BuildHasher + Default, +{ #[inline] fn from_stream<'a, S: IntoStream>( stream: S, diff --git a/src/collections/linked_list/extend.rs b/src/collections/linked_list/extend.rs index 8f82547..567a92d 100644 --- a/src/collections/linked_list/extend.rs +++ b/src/collections/linked_list/extend.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::LinkedList; +use std::pin::Pin; use crate::prelude::*; use crate::stream::{Extend, IntoStream}; diff --git a/src/collections/linked_list/from_stream.rs b/src/collections/linked_list/from_stream.rs index 40b1100..3ffe149 100644 --- a/src/collections/linked_list/from_stream.rs +++ b/src/collections/linked_list/from_stream.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::LinkedList; +use std::pin::Pin; use crate::stream::{Extend, FromStream, IntoStream}; diff --git a/src/collections/mod.rs b/src/collections/mod.rs index 2ccdb23..ae9efaa 100644 --- a/src/collections/mod.rs +++ b/src/collections/mod.rs @@ -3,18 +3,18 @@ //! This library provides efficient implementations of the most common general purpose programming //! data structures. -pub mod vec_deque; -pub mod hash_map; -pub mod hash_set; +pub mod binary_heap; pub mod btree_map; pub mod btree_set; -pub mod binary_heap; +pub mod hash_map; +pub mod hash_set; pub mod linked_list; +pub mod vec_deque; -pub use vec_deque::VecDeque; -pub use hash_map::HashMap; -pub use hash_set::HashSet; +pub use binary_heap::BinaryHeap; pub use btree_map::BTreeMap; pub use btree_set::BTreeSet; -pub use binary_heap::BinaryHeap; +pub use hash_map::HashMap; +pub use hash_set::HashSet; pub use linked_list::LinkedList; +pub use vec_deque::VecDeque; diff --git a/src/collections/vec_deque/extend.rs b/src/collections/vec_deque/extend.rs index b8884d8..d034bdc 100644 --- a/src/collections/vec_deque/extend.rs +++ b/src/collections/vec_deque/extend.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::VecDeque; +use std::pin::Pin; use crate::prelude::*; use crate::stream::{Extend, IntoStream}; diff --git a/src/collections/vec_deque/from_stream.rs b/src/collections/vec_deque/from_stream.rs index ef92a49..8903de0 100644 --- a/src/collections/vec_deque/from_stream.rs +++ b/src/collections/vec_deque/from_stream.rs @@ -1,5 +1,5 @@ -use std::pin::Pin; use std::collections::VecDeque; +use std::pin::Pin; use crate::stream::{Extend, FromStream, IntoStream}; diff --git a/src/vec/from_stream.rs b/src/vec/from_stream.rs index f4ca9a9..b326b04 100644 --- a/src/vec/from_stream.rs +++ b/src/vec/from_stream.rs @@ -1,7 +1,7 @@ -use std::pin::Pin; use std::borrow::Cow; -use std::sync::Arc; +use std::pin::Pin; use std::rc::Rc; +use std::sync::Arc; use crate::stream::{Extend, FromStream, IntoStream};