diff options
Diffstat (limited to 'src/libcore/unit.rs')
| -rw-r--r-- | src/libcore/unit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/unit.rs b/src/libcore/unit.rs index bf01ceb8b2d..f41f4a5e94a 100644 --- a/src/libcore/unit.rs +++ b/src/libcore/unit.rs @@ -15,7 +15,7 @@ use crate::iter::FromIterator; /// ``` #[stable(feature = "unit_from_iter", since = "1.23.0")] impl FromIterator<()> for () { - fn from_iter<I: IntoIterator<Item=()>>(iter: I) -> Self { + fn from_iter<I: IntoIterator<Item = ()>>(iter: I) -> Self { iter.into_iter().for_each(|()| {}) } } |
