Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo committed Sep 21, 2024
1 parent 6624b0d commit 73d5465
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions parser/src/cfg/switch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,15 @@ pub fn parse_switch_case_bool(
}
AllowedListOps::Layer | AllowedListOps::BaseLayer => {
if l.len() != 2 {
bail_expr!(op_expr, "{} must have 1 parameter: layer-name", match op {
AllowedListOps::Layer => "layer",
AllowedListOps::BaseLayer => "base-layer",
_ => unreachable!(),
});
bail_expr!(
op_expr,
"{} must have 1 parameter: layer-name",
match op {
AllowedListOps::Layer => "layer",
AllowedListOps::BaseLayer => "base-layer",
_ => unreachable!(),
}
);
}
let layer = l[1]
.atom(s.vars())
Expand Down

0 comments on commit 73d5465

Please sign in to comment.