Replace let Some(..) = with .is_some()
Signed-off-by: wcampbell <wcampbell1995@gmail.com>
This commit is contained in:
parent
edeb631ad0
commit
e23acc341c
2 changed files with 2 additions and 2 deletions
|
@ -526,7 +526,7 @@ impl MetaItemKind {
|
|||
fn list_from_tokens(tokens: TokenStream) -> Option<MetaItemKind> {
|
||||
let mut tokens = tokens.into_trees().peekable();
|
||||
let mut result = Vec::new();
|
||||
while let Some(..) = tokens.peek() {
|
||||
while tokens.peek().is_some() {
|
||||
let item = NestedMetaItem::from_tokens(&mut tokens)?;
|
||||
result.push(item);
|
||||
match tokens.next() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue