Skip to content

Commit f9ebb81

Browse files
committed
formating
1 parent 6121924 commit f9ebb81

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![warn(missing_docs)]
2-
#![crate_name = "itertools"]
2+
#![crate_name="itertools"]
33
#![cfg_attr(not(feature = "use_std"), no_std)]
44

55
//! Extra iterator adaptors, functions and macros.
@@ -45,7 +45,7 @@
4545
//! This version of itertools requires Rust 1.32 or later.
4646
//!
4747
//! [`Iterator`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html
48-
#![doc(html_root_url = "https://docs.rs/itertools/0.8/")]
48+
#![doc(html_root_url="https://docs.rs/itertools/0.8/")]
4949

5050
extern crate either;
5151

@@ -680,7 +680,7 @@ pub trait Itertools : Iterator {
680680
/// let it = (0..8).step(3);
681681
/// itertools::assert_equal(it, vec![0, 3, 6]);
682682
/// ```
683-
#[deprecated(note = "Use std .step_by() instead", since = "0.8")]
683+
#[deprecated(note="Use std .step_by() instead", since = "0.8")]
684684
#[allow(deprecated)]
685685
fn step(self, n: usize) -> Step<Self>
686686
where Self: Sized
@@ -854,7 +854,7 @@ pub trait Itertools : Iterator {
854854
/// ```
855855
#[cfg(feature = "use_std")]
856856
fn kmerge_by<F>(self, first: F)
857-
-> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F>
857+
-> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F>
858858
where Self: Sized,
859859
Self::Item: IntoIterator,
860860
F: FnMut(&<Self::Item as IntoIterator>::Item,
@@ -992,7 +992,7 @@ pub trait Itertools : Iterator {
992992
/// ```
993993
fn dedup_by<Cmp>(self, cmp: Cmp) -> DedupBy<Self, Cmp>
994994
where Self: Sized,
995-
Cmp: FnMut(&Self::Item, &Self::Item) -> bool,
995+
Cmp: FnMut(&Self::Item, &Self::Item)->bool,
996996
{
997997
adaptors::dedup_by(self, cmp)
998998
}
@@ -1511,7 +1511,7 @@ pub trait Itertools : Iterator {
15111511
///
15121512
/// itertools::assert_equal(rx.iter(), vec![1, 3, 5, 7, 9]);
15131513
/// ```
1514-
#[deprecated(note = "Use .for_each() instead", since = "0.8")]
1514+
#[deprecated(note="Use .for_each() instead", since="0.8")]
15151515
fn foreach<F>(self, f: F)
15161516
where F: FnMut(Self::Item),
15171517
Self: Sized,
@@ -1950,7 +1950,7 @@ pub trait Itertools : Iterator {
19501950
/// The big difference between the computations of `result2` and `result3` is that while
19511951
/// `fold()` called the provided closure for every item of the callee iterator,
19521952
/// `fold_while()` actually stopped iterating as soon as it encountered `Fold::Done(_)`.
1953-
#[deprecated(note = "Use .try_fold() instead", since = "0.8")]
1953+
#[deprecated(note="Use .try_fold() instead", since="0.8")]
19541954
fn fold_while<B, F>(&mut self, init: B, mut f: F) -> FoldWhile<B>
19551955
where Self: Sized,
19561956
F: FnMut(B, Self::Item) -> FoldWhile<B>
@@ -2387,7 +2387,7 @@ pub fn assert_equal<I, J>(a: I, b: J)
23872387
_ => false,
23882388
};
23892389
assert!(equal, "Failed assertion {a:?} == {b:?} for iteration {i}",
2390-
i = i, a = a, b = b);
2390+
i=i, a=a, b=b);
23912391
i += 1;
23922392
}
23932393
}

0 commit comments

Comments
 (0)