polish: remove warnings on core macero

This commit is contained in:
Jonathan Kelley committed 2021-09-24 20:51:48 -04:00
1 parent b43a964f98
commit 6587224deb
10 files changed
+38 -96

No files matched your search

+3 -4
View File
@@ -14,13 +14,12 @@
//!
use {
proc_macro::TokenStream,
proc_macro2::{Span, TokenStream as TokenStream2},
proc_macro2::TokenStream as TokenStream2,
quote::{quote, ToTokens, TokenStreamExt},
syn::{
ext::IdentExt,
parse::{Parse, ParseStream},
token, Error, Expr, ExprClosure, Ident, LitBool, LitStr, Path, Result, Token,
token, Error, Expr, ExprClosure, Ident, LitStr, Result, Token,
},
};
@@ -121,7 +120,7 @@ impl ToTokens for ToToksCtx<&Node> {
}
impl Node {
fn peek(s: ParseStream) -> bool {
fn _peek(s: ParseStream) -> bool {
(s.peek(Token![<]) && !s.peek2(Token![/])) || s.peek(token::Brace) || s.peek(LitStr)
}
}