Skip to content

Commit f968c9a

Browse files
committed
rustfmt
1 parent 2cf3f3f commit f968c9a

File tree

16 files changed

+44
-36
lines changed

16 files changed

+44
-36
lines changed

src/collections/binary_heap/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::BinaryHeap;
2+
use std::pin::Pin;
33

44
use crate::prelude::*;
55
use crate::stream::{Extend, IntoStream};

src/collections/binary_heap/from_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::BinaryHeap;
2+
use std::pin::Pin;
33

44
use crate::stream::{Extend, FromStream, IntoStream};
55

src/collections/btree_map/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::BTreeMap;
2+
use std::pin::Pin;
33

44
use crate::prelude::*;
55
use crate::stream::{Extend, IntoStream};

src/collections/btree_map/from_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::BTreeMap;
2+
use std::pin::Pin;
33

44
use crate::stream::{Extend, FromStream, IntoStream};
55

src/collections/btree_set/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::BTreeSet;
2+
use std::pin::Pin;
33

44
use crate::prelude::*;
55
use crate::stream::{Extend, IntoStream};

src/collections/btree_set/from_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::BTreeSet;
2+
use std::pin::Pin;
33

44
use crate::stream::{Extend, FromStream, IntoStream};
55

src/collections/hash_map/extend.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
use std::pin::Pin;
2-
use std::hash::{Hash, BuildHasher};
31
use std::collections::HashMap;
2+
use std::hash::{BuildHasher, Hash};
3+
use std::pin::Pin;
44

55
use crate::prelude::*;
66
use crate::stream::{Extend, IntoStream};
77

88
impl<K, V, H> Extend<(K, V)> for HashMap<K, V, H>
9-
where K: Eq + Hash,
10-
H: BuildHasher + Default {
9+
where
10+
K: Eq + Hash,
11+
H: BuildHasher + Default,
12+
{
1113
fn stream_extend<'a, S: IntoStream<Item = (K, V)> + 'a>(
1214
&'a mut self,
1315
stream: S,

src/collections/hash_map/from_stream.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
use std::pin::Pin;
2-
use std::hash::{Hash, BuildHasher};
31
use std::collections::HashMap;
2+
use std::hash::{BuildHasher, Hash};
3+
use std::pin::Pin;
44

55
use crate::stream::{Extend, FromStream, IntoStream};
66

77
impl<K, V, H> FromStream<(K, V)> for HashMap<K, V, H>
8-
where K: Eq + Hash,
9-
H: BuildHasher + Default {
8+
where
9+
K: Eq + Hash,
10+
H: BuildHasher + Default,
11+
{
1012
#[inline]
1113
fn from_stream<'a, S: IntoStream<Item = (K, V)>>(
1214
stream: S,

src/collections/hash_set/extend.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
use std::pin::Pin;
2-
use std::hash::{Hash, BuildHasher};
31
use std::collections::HashSet;
2+
use std::hash::{BuildHasher, Hash};
3+
use std::pin::Pin;
44

55
use crate::prelude::*;
66
use crate::stream::{Extend, IntoStream};
77

88
impl<T, H> Extend<T> for HashSet<T, H>
9-
where T: Eq + Hash,
10-
H: BuildHasher + Default {
9+
where
10+
T: Eq + Hash,
11+
H: BuildHasher + Default,
12+
{
1113
fn stream_extend<'a, S: IntoStream<Item = T> + 'a>(
1214
&'a mut self,
1315
stream: S,

src/collections/hash_set/from_stream.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
use std::pin::Pin;
2-
use std::hash::{Hash, BuildHasher};
31
use std::collections::HashSet;
2+
use std::hash::{BuildHasher, Hash};
3+
use std::pin::Pin;
44

55
use crate::stream::{Extend, FromStream, IntoStream};
66

77
impl<T, H> FromStream<T> for HashSet<T, H>
8-
where T: Eq + Hash,
9-
H: BuildHasher + Default {
8+
where
9+
T: Eq + Hash,
10+
H: BuildHasher + Default,
11+
{
1012
#[inline]
1113
fn from_stream<'a, S: IntoStream<Item = T>>(
1214
stream: S,

src/collections/linked_list/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::LinkedList;
2+
use std::pin::Pin;
33

44
use crate::prelude::*;
55
use crate::stream::{Extend, IntoStream};

src/collections/linked_list/from_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::LinkedList;
2+
use std::pin::Pin;
33

44
use crate::stream::{Extend, FromStream, IntoStream};
55

src/collections/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
//! This library provides efficient implementations of the most common general purpose programming
44
//! data structures.
55
6-
pub mod vec_deque;
7-
pub mod hash_map;
8-
pub mod hash_set;
6+
pub mod binary_heap;
97
pub mod btree_map;
108
pub mod btree_set;
11-
pub mod binary_heap;
9+
pub mod hash_map;
10+
pub mod hash_set;
1211
pub mod linked_list;
12+
pub mod vec_deque;
1313

14-
pub use vec_deque::VecDeque;
15-
pub use hash_map::HashMap;
16-
pub use hash_set::HashSet;
14+
pub use binary_heap::BinaryHeap;
1715
pub use btree_map::BTreeMap;
1816
pub use btree_set::BTreeSet;
19-
pub use binary_heap::BinaryHeap;
17+
pub use hash_map::HashMap;
18+
pub use hash_set::HashSet;
2019
pub use linked_list::LinkedList;
20+
pub use vec_deque::VecDeque;

src/collections/vec_deque/extend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::VecDeque;
2+
use std::pin::Pin;
33

44
use crate::prelude::*;
55
use crate::stream::{Extend, IntoStream};

src/collections/vec_deque/from_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::pin::Pin;
21
use std::collections::VecDeque;
2+
use std::pin::Pin;
33

44
use crate::stream::{Extend, FromStream, IntoStream};
55

src/vec/from_stream.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use std::pin::Pin;
21
use std::borrow::Cow;
3-
use std::sync::Arc;
2+
use std::pin::Pin;
43
use std::rc::Rc;
4+
use std::sync::Arc;
55

66
use crate::stream::{Extend, FromStream, IntoStream};
77

0 commit comments

Comments
 (0)