Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/cfg/src/cfg_expr.rs')
-rw-r--r--crates/cfg/src/cfg_expr.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/cfg/src/cfg_expr.rs b/crates/cfg/src/cfg_expr.rs
index aed00aa9fc..f83c21eb8d 100644
--- a/crates/cfg/src/cfg_expr.rs
+++ b/crates/cfg/src/cfg_expr.rs
@@ -134,10 +134,10 @@ fn next_cfg_expr<S: Copy>(it: &mut tt::iter::TtIter<'_, S>) -> Option<CfgExpr> {
};
// Eat comma separator
- if let Some(TtElement::Leaf(tt::Leaf::Punct(punct))) = it.peek() {
- if punct.char == ',' {
- it.next();
- }
+ if let Some(TtElement::Leaf(tt::Leaf::Punct(punct))) = it.peek()
+ && punct.char == ','
+ {
+ it.next();
}
Some(ret)
}