1
Fork 0

compiler: remove unnecessary imports and qualified paths

This commit is contained in:
KaDiWa 2022-08-09 02:14:43 +02:00
parent a161a7b654
commit 9bc69925cb
No known key found for this signature in database
GPG key ID: 0B52AE391C674CE5
76 changed files with 24 additions and 98 deletions

View file

@ -362,7 +362,7 @@ impl TokenStream {
}
}
impl iter::FromIterator<TokenTree> for TokenStream {
impl FromIterator<TokenTree> for TokenStream {
fn from_iter<I: IntoIterator<Item = TokenTree>>(iter: I) -> Self {
TokenStream::new(iter.into_iter().collect::<Vec<TokenTree>>())
}