Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit eca69d8

Browse files
author
Marko Mikulicic
committed
Fix fmt
1 parent 9503b4a commit eca69d8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/parser.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@ fn parse_union_indices(matcher_rule: pest::iterators::Pair<Rule>) -> Vec<Index>
5959
}
6060

6161
fn parse_union_child(matcher_rule: pest::iterators::Pair<Rule>) -> Vec<Index> {
62-
matcher_rule.into_inner().map(|r|
63-
match r.as_rule() {
62+
matcher_rule
63+
.into_inner()
64+
.map(|r| match r.as_rule() {
6465
Rule::doubleInner => Index::Field(unescape(r.as_str())),
6566
Rule::singleInner => Index::Field(unescape_single(r.as_str())),
6667
_ => panic!("invalid parse tree {:?}", r),
67-
}
68-
).collect()
68+
})
69+
.collect()
6970
}
7071

7172
fn parse_union_array_index(matcher_rule: pest::iterators::Pair<Rule>) -> Index {

0 commit comments

Comments
 (0)