Skip to content

Commit ff7081e

Browse files
Qelxirosdtolnay
andauthored
Update library/proc_macro/src/lib.rs
Co-authored-by: David Tolnay <[email protected]>
1 parent f0fd9cd commit ff7081e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/proc_macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ macro_rules! extend_items {
383383
#[stable(feature = "token_stream_extend_tt_items", since = "CURRENT_RUSTC_VERSION")]
384384
impl Extend<$item> for TokenStream {
385385
fn extend<T: IntoIterator<Item = $item>>(&mut self, iter: T) {
386-
self.extend(iter.into_iter().map(|i| TokenTree::$item(i)));
386+
self.extend(iter.into_iter().map(TokenTree::$item));
387387
}
388388
}
389389
)*

0 commit comments

Comments
 (0)