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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 4 deletions
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

Lines changed: 6 additions & 4 deletions
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

Lines changed: 6 additions & 4 deletions
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

Lines changed: 6 additions & 4 deletions
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,

0 commit comments

Comments
 (0)