diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-04 09:30:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-04 11:38:09 +0100 |
| commit | eb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch) | |
| tree | 9856ee4ed0222222669de10e616a580b2a60135e /src/syntax/ast.rs | |
| parent | 33928a00dc58250e24da1dae4e5db17e7b598d70 (diff) | |
Style changes
Diffstat (limited to 'src/syntax/ast.rs')
| -rw-r--r-- | src/syntax/ast.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 06e41fa0..61b8f0e6 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -1471,7 +1471,11 @@ impl ForPattern { pub fn key(&self) -> Option<Ident> { let mut children = self.0.children().filter_map(SyntaxNode::cast); let key = children.next(); - if children.next().is_some() { key } else { None } + if children.next().is_some() { + key + } else { + None + } } /// The value part of the pattern. |
