mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Use array IntoIter
This commit is contained in:
parent
56fbf5d7b2
commit
ca44b6892e
13 changed files with 33 additions and 32 deletions
|
@ -28,8 +28,7 @@ macro_rules! quote_ts {
|
|||
[
|
||||
TokenTree::from(Punct::new(':', Spacing::Joint)),
|
||||
TokenTree::from(Punct::new(':', Spacing::Alone)),
|
||||
].iter()
|
||||
.cloned()
|
||||
].into_iter()
|
||||
.map(|mut x| {
|
||||
x.set_span(Span::def_site());
|
||||
x
|
||||
|
@ -52,7 +51,7 @@ macro_rules! quote {
|
|||
($($t:tt)*) => {
|
||||
[
|
||||
$(TokenStream::from(quote_ts!($t)),)*
|
||||
].iter().cloned().collect::<TokenStream>()
|
||||
].into_iter().collect::<TokenStream>()
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue