diff options
| author | wcampbell <wcampbell1995@gmail.com> | 2021-01-17 19:06:12 -0500 |
|---|---|---|
| committer | wcampbell <wcampbell1995@gmail.com> | 2021-01-17 19:06:12 -0500 |
| commit | e23acc341c2e71484683e237d62ea37b4aa63115 (patch) | |
| tree | 1431914322a7afc3da2ea2a37138a51f842c46e9 /compiler/rustc_ast/src | |
| parent | edeb631ad0cd6fdf31e2e31ec90e105d1768be28 (diff) | |
| download | rust-e23acc341c2e71484683e237d62ea37b4aa63115.tar.gz rust-e23acc341c2e71484683e237d62ea37b4aa63115.zip | |
Replace let Some(..) = with .is_some()
Signed-off-by: wcampbell <wcampbell1995@gmail.com>
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/attr/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/attr/mod.rs b/compiler/rustc_ast/src/attr/mod.rs index 6a54cb4766b..4dcbe4831be 100644 --- a/compiler/rustc_ast/src/attr/mod.rs +++ b/compiler/rustc_ast/src/attr/mod.rs @@ -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() { |
