diff --git a/library/core/src/iter/adapters/chain.rs b/library/core/src/iter/adapters/chain.rs index 86a005f3408..9753e1b43ba 100644 --- a/library/core/src/iter/adapters/chain.rs +++ b/library/core/src/iter/adapters/chain.rs @@ -1,8 +1,5 @@ -use crate::{ - iter::{DoubleEndedIterator, FusedIterator, Iterator, TrustedLen}, - ops::Try, - usize, -}; +use crate::iter::{DoubleEndedIterator, FusedIterator, Iterator, TrustedLen}; +use crate::{ops::Try, usize}; /// An iterator that links two iterators together, in a chain. /// diff --git a/library/core/src/iter/adapters/cloned.rs b/library/core/src/iter/adapters/cloned.rs index da523c83656..7da47dcd2d1 100644 --- a/library/core/src/iter/adapters/cloned.rs +++ b/library/core/src/iter/adapters/cloned.rs @@ -1,9 +1,6 @@ -use crate::{ - iter::{ - adapters::zip::try_get_unchecked, adapters::TrustedRandomAccess, FusedIterator, TrustedLen, - }, - ops::Try, -}; +use crate::iter::adapters::{zip::try_get_unchecked, TrustedRandomAccess}; +use crate::iter::{FusedIterator, TrustedLen}; +use crate::ops::Try; /// An iterator that clones the elements of an underlying iterator. /// diff --git a/library/core/src/iter/adapters/copied.rs b/library/core/src/iter/adapters/copied.rs index 98e231498c9..46f22354111 100644 --- a/library/core/src/iter/adapters/copied.rs +++ b/library/core/src/iter/adapters/copied.rs @@ -1,9 +1,6 @@ -use crate::{ - iter::{ - adapters::zip::try_get_unchecked, adapters::TrustedRandomAccess, FusedIterator, TrustedLen, - }, - ops::Try, -}; +use crate::iter::adapters::{zip::try_get_unchecked, TrustedRandomAccess}; +use crate::iter::{FusedIterator, TrustedLen}; +use crate::ops::Try; /// An iterator that copies the elements of an underlying iterator. /// diff --git a/library/core/src/iter/adapters/enumerate.rs b/library/core/src/iter/adapters/enumerate.rs index c42028ddeed..5978c2da98c 100644 --- a/library/core/src/iter/adapters/enumerate.rs +++ b/library/core/src/iter/adapters/enumerate.rs @@ -1,10 +1,6 @@ -use crate::{ - iter::{ - adapters::{zip::try_get_unchecked, SourceIter, TrustedRandomAccess}, - FusedIterator, InPlaceIterable, TrustedLen, - }, - ops::{Add, AddAssign, Try}, -}; +use crate::iter::adapters::{zip::try_get_unchecked, SourceIter, TrustedRandomAccess}; +use crate::iter::{FusedIterator, InPlaceIterable, TrustedLen}; +use crate::ops::{Add, AddAssign, Try}; /// An iterator that yields the current count and the element during iteration. /// diff --git a/library/core/src/iter/adapters/filter.rs b/library/core/src/iter/adapters/filter.rs index 4de520eaca3..f8d684fcdda 100644 --- a/library/core/src/iter/adapters/filter.rs +++ b/library/core/src/iter/adapters/filter.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}, - ops::Try, -}; +use crate::fmt; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}; +use crate::ops::Try; /// An iterator that filters the elements of `iter` with `predicate`. /// diff --git a/library/core/src/iter/adapters/filter_map.rs b/library/core/src/iter/adapters/filter_map.rs index c7c63db3cdc..0dccf2c533b 100644 --- a/library/core/src/iter/adapters/filter_map.rs +++ b/library/core/src/iter/adapters/filter_map.rs @@ -1,9 +1,6 @@ -use crate::{ - fmt, - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}, - ops::ControlFlow, - ops::Try, -}; +use crate::fmt; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}; +use crate::ops::{ControlFlow, Try}; /// An iterator that uses `f` to both filter and map elements from `iter`. /// diff --git a/library/core/src/iter/adapters/flatten.rs b/library/core/src/iter/adapters/flatten.rs index d38b648cd16..ff85e114dc9 100644 --- a/library/core/src/iter/adapters/flatten.rs +++ b/library/core/src/iter/adapters/flatten.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{DoubleEndedIterator, Fuse, FusedIterator, Iterator, Map}, - ops::Try, -}; +use crate::fmt; +use crate::iter::{DoubleEndedIterator, Fuse, FusedIterator, Iterator, Map}; +use crate::ops::Try; /// An iterator that maps each element to an iterator, and yields the elements /// of the produced iterators. diff --git a/library/core/src/iter/adapters/fuse.rs b/library/core/src/iter/adapters/fuse.rs index c159e67773b..ae074065315 100644 --- a/library/core/src/iter/adapters/fuse.rs +++ b/library/core/src/iter/adapters/fuse.rs @@ -1,11 +1,7 @@ -use crate::{ - intrinsics, - iter::{ - adapters::{zip::try_get_unchecked, InPlaceIterable, SourceIter}, - DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator, TrustedRandomAccess, - }, - ops::Try, -}; +use crate::intrinsics; +use crate::iter::adapters::{zip::try_get_unchecked, InPlaceIterable, SourceIter}; +use crate::iter::{DoubleEndedIterator, ExactSizeIterator, FusedIterator, TrustedRandomAccess}; +use crate::ops::Try; /// An iterator that yields `None` forever after the underlying iterator /// yields `None` once. diff --git a/library/core/src/iter/adapters/inspect.rs b/library/core/src/iter/adapters/inspect.rs index ae2e5eac728..88f5ee61b6b 100644 --- a/library/core/src/iter/adapters/inspect.rs +++ b/library/core/src/iter/adapters/inspect.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}, - ops::Try, -}; +use crate::fmt; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}; +use crate::ops::Try; /// An iterator that calls a function with a reference to each element before /// yielding it. diff --git a/library/core/src/iter/adapters/map.rs b/library/core/src/iter/adapters/map.rs index 0691f997f7b..12673806ec4 100644 --- a/library/core/src/iter/adapters/map.rs +++ b/library/core/src/iter/adapters/map.rs @@ -1,11 +1,7 @@ -use crate::{ - fmt, - iter::{ - adapters::{zip::try_get_unchecked, SourceIter, TrustedRandomAccess}, - FusedIterator, InPlaceIterable, TrustedLen, - }, - ops::Try, -}; +use crate::fmt; +use crate::iter::adapters::{zip::try_get_unchecked, SourceIter, TrustedRandomAccess}; +use crate::iter::{FusedIterator, InPlaceIterable, TrustedLen}; +use crate::ops::Try; /// An iterator that maps the values of `iter` with `f`. /// diff --git a/library/core/src/iter/adapters/map_while.rs b/library/core/src/iter/adapters/map_while.rs index a3dcbb4d82f..26114d53284 100644 --- a/library/core/src/iter/adapters/map_while.rs +++ b/library/core/src/iter/adapters/map_while.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{adapters::SourceIter, InPlaceIterable}, - ops::{ControlFlow, Try}, -}; +use crate::fmt; +use crate::iter::{adapters::SourceIter, InPlaceIterable}; +use crate::ops::{ControlFlow, Try}; /// An iterator that only accepts elements while `predicate` returns `Some(_)`. /// diff --git a/library/core/src/iter/adapters/mod.rs b/library/core/src/iter/adapters/mod.rs index 1969d35fec4..5ef5717085e 100644 --- a/library/core/src/iter/adapters/mod.rs +++ b/library/core/src/iter/adapters/mod.rs @@ -1,7 +1,5 @@ -use crate::{ - iter::{InPlaceIterable, Iterator}, - ops::{ControlFlow, Try}, -}; +use crate::iter::{InPlaceIterable, Iterator}; +use crate::ops::{ControlFlow, Try}; mod chain; mod cloned; diff --git a/library/core/src/iter/adapters/peekable.rs b/library/core/src/iter/adapters/peekable.rs index 1822e10bdf6..e7fb3abc942 100644 --- a/library/core/src/iter/adapters/peekable.rs +++ b/library/core/src/iter/adapters/peekable.rs @@ -1,7 +1,5 @@ -use crate::{ - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable, TrustedLen}, - ops::Try, -}; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable, TrustedLen}; +use crate::ops::Try; /// An iterator with a `peek()` that returns an optional reference to the next /// element. diff --git a/library/core/src/iter/adapters/rev.rs b/library/core/src/iter/adapters/rev.rs index 48ec0a80ad9..105ed40a3ed 100644 --- a/library/core/src/iter/adapters/rev.rs +++ b/library/core/src/iter/adapters/rev.rs @@ -1,7 +1,5 @@ -use crate::{ - iter::{FusedIterator, TrustedLen}, - ops::Try, -}; +use crate::iter::{FusedIterator, TrustedLen}; +use crate::ops::Try; /// A double-ended iterator with the direction inverted. /// diff --git a/library/core/src/iter/adapters/scan.rs b/library/core/src/iter/adapters/scan.rs index 12c11419c70..0214899295e 100644 --- a/library/core/src/iter/adapters/scan.rs +++ b/library/core/src/iter/adapters/scan.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{adapters::SourceIter, InPlaceIterable}, - ops::{ControlFlow, Try}, -}; +use crate::fmt; +use crate::iter::{adapters::SourceIter, InPlaceIterable}; +use crate::ops::{ControlFlow, Try}; /// An iterator to maintain state while iterating another iterator. /// diff --git a/library/core/src/iter/adapters/skip.rs b/library/core/src/iter/adapters/skip.rs index ff2d07c0c0d..dd5325660c3 100644 --- a/library/core/src/iter/adapters/skip.rs +++ b/library/core/src/iter/adapters/skip.rs @@ -1,7 +1,5 @@ -use crate::{ - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}, - ops::{ControlFlow, Try}, -}; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}; +use crate::ops::{ControlFlow, Try}; /// An iterator that skips over `n` elements of `iter`. /// diff --git a/library/core/src/iter/adapters/skip_while.rs b/library/core/src/iter/adapters/skip_while.rs index cda8f9188d2..efcb469fc95 100644 --- a/library/core/src/iter/adapters/skip_while.rs +++ b/library/core/src/iter/adapters/skip_while.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}, - ops::Try, -}; +use crate::fmt; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}; +use crate::ops::Try; /// An iterator that rejects elements while `predicate` returns `true`. /// diff --git a/library/core/src/iter/adapters/take.rs b/library/core/src/iter/adapters/take.rs index b9a8c7ff2bc..9efc7a480ae 100644 --- a/library/core/src/iter/adapters/take.rs +++ b/library/core/src/iter/adapters/take.rs @@ -1,8 +1,6 @@ -use crate::{ - cmp, - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable, TrustedLen}, - ops::{ControlFlow, Try}, -}; +use crate::cmp; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable, TrustedLen}; +use crate::ops::{ControlFlow, Try}; /// An iterator that only iterates over the first `n` iterations of `iter`. /// diff --git a/library/core/src/iter/adapters/take_while.rs b/library/core/src/iter/adapters/take_while.rs index aae0b20b83c..746eb41f4c3 100644 --- a/library/core/src/iter/adapters/take_while.rs +++ b/library/core/src/iter/adapters/take_while.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}, - ops::{ControlFlow, Try}, -}; +use crate::fmt; +use crate::iter::{adapters::SourceIter, FusedIterator, InPlaceIterable}; +use crate::ops::{ControlFlow, Try}; /// An iterator that only accepts elements while `predicate` returns `true`. /// diff --git a/library/core/src/iter/adapters/zip.rs b/library/core/src/iter/adapters/zip.rs index fdc4035a612..8cd4c775231 100644 --- a/library/core/src/iter/adapters/zip.rs +++ b/library/core/src/iter/adapters/zip.rs @@ -1,11 +1,7 @@ -use crate::{ - cmp, - fmt::{self, Debug}, - iter::{ - DoubleEndedIterator, ExactSizeIterator, FusedIterator, InPlaceIterable, Iterator, - SourceIter, TrustedLen, - }, -}; +use crate::cmp; +use crate::fmt::{self, Debug}; +use crate::iter::{DoubleEndedIterator, ExactSizeIterator, FusedIterator, Iterator}; +use crate::iter::{InPlaceIterable, SourceIter, TrustedLen}; /// An iterator that iterates two other iterators simultaneously. /// diff --git a/library/core/src/iter/sources/empty.rs b/library/core/src/iter/sources/empty.rs index 45412754a11..5d4a9fe8c6c 100644 --- a/library/core/src/iter/sources/empty.rs +++ b/library/core/src/iter/sources/empty.rs @@ -1,8 +1,6 @@ -use crate::{ - fmt, - iter::{FusedIterator, TrustedLen}, - marker, -}; +use crate::fmt; +use crate::iter::{FusedIterator, TrustedLen}; +use crate::marker; /// Creates an iterator that yields nothing. ///