]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/unit.rs
parser: move `ban_async_in_2015` to `fn` parsing & improve it.
[rust.git] / src / libcore / unit.rs
index bf01ceb8b2d3e5bbb4dcd484e0c91a319236cc3a..f41f4a5e94a76ee5b585b9575636cfa4b7e66aab 100644 (file)
@@ -15,7 +15,7 @@
 /// ```
 #[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(|()| {})
     }
 }