|
1 | 1 | #![warn(missing_docs)]
|
2 |
| -#![crate_name = "itertools"] |
| 2 | +#![crate_name="itertools"] |
3 | 3 | #![cfg_attr(not(feature = "use_std"), no_std)]
|
4 | 4 |
|
5 | 5 | //! Extra iterator adaptors, functions and macros.
|
|
45 | 45 | //! This version of itertools requires Rust 1.32 or later.
|
46 | 46 | //!
|
47 | 47 | //! [`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/")] |
49 | 49 |
|
50 | 50 | extern crate either;
|
51 | 51 |
|
@@ -680,7 +680,7 @@ pub trait Itertools : Iterator {
|
680 | 680 | /// let it = (0..8).step(3);
|
681 | 681 | /// itertools::assert_equal(it, vec![0, 3, 6]);
|
682 | 682 | /// ```
|
683 |
| - #[deprecated(note = "Use std .step_by() instead", since = "0.8")] |
| 683 | + #[deprecated(note="Use std .step_by() instead", since = "0.8")] |
684 | 684 | #[allow(deprecated)]
|
685 | 685 | fn step(self, n: usize) -> Step<Self>
|
686 | 686 | where Self: Sized
|
@@ -854,7 +854,7 @@ pub trait Itertools : Iterator {
|
854 | 854 | /// ```
|
855 | 855 | #[cfg(feature = "use_std")]
|
856 | 856 | fn kmerge_by<F>(self, first: F)
|
857 |
| - -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F> |
| 857 | + -> KMergeBy<<Self::Item as IntoIterator>::IntoIter, F> |
858 | 858 | where Self: Sized,
|
859 | 859 | Self::Item: IntoIterator,
|
860 | 860 | F: FnMut(&<Self::Item as IntoIterator>::Item,
|
@@ -992,7 +992,7 @@ pub trait Itertools : Iterator {
|
992 | 992 | /// ```
|
993 | 993 | fn dedup_by<Cmp>(self, cmp: Cmp) -> DedupBy<Self, Cmp>
|
994 | 994 | where Self: Sized,
|
995 |
| - Cmp: FnMut(&Self::Item, &Self::Item) -> bool, |
| 995 | + Cmp: FnMut(&Self::Item, &Self::Item)->bool, |
996 | 996 | {
|
997 | 997 | adaptors::dedup_by(self, cmp)
|
998 | 998 | }
|
@@ -1511,7 +1511,7 @@ pub trait Itertools : Iterator {
|
1511 | 1511 | ///
|
1512 | 1512 | /// itertools::assert_equal(rx.iter(), vec![1, 3, 5, 7, 9]);
|
1513 | 1513 | /// ```
|
1514 |
| - #[deprecated(note = "Use .for_each() instead", since = "0.8")] |
| 1514 | + #[deprecated(note="Use .for_each() instead", since="0.8")] |
1515 | 1515 | fn foreach<F>(self, f: F)
|
1516 | 1516 | where F: FnMut(Self::Item),
|
1517 | 1517 | Self: Sized,
|
@@ -1950,7 +1950,7 @@ pub trait Itertools : Iterator {
|
1950 | 1950 | /// The big difference between the computations of `result2` and `result3` is that while
|
1951 | 1951 | /// `fold()` called the provided closure for every item of the callee iterator,
|
1952 | 1952 | /// `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")] |
1954 | 1954 | fn fold_while<B, F>(&mut self, init: B, mut f: F) -> FoldWhile<B>
|
1955 | 1955 | where Self: Sized,
|
1956 | 1956 | F: FnMut(B, Self::Item) -> FoldWhile<B>
|
@@ -2387,7 +2387,7 @@ pub fn assert_equal<I, J>(a: I, b: J)
|
2387 | 2387 | _ => false,
|
2388 | 2388 | };
|
2389 | 2389 | assert!(equal, "Failed assertion {a:?} == {b:?} for iteration {i}",
|
2390 |
| - i = i, a = a, b = b); |
| 2390 | + i=i, a=a, b=b); |
2391 | 2391 | i += 1;
|
2392 | 2392 | }
|
2393 | 2393 | }
|
|
0 commit comments