summaryrefslogtreecommitdiff
path: root/dhall_core/src
diff options
context:
space:
mode:
authorNadrieril2019-03-12 00:24:28 +0100
committerNadrieril2019-03-12 00:24:28 +0100
commitafa8212e9551c0421ec8137ada6f5d24b2cbfd34 (patch)
tree630d42f51f98526a15c977be8e57051c1e075323 /dhall_core/src
parent4cd6c39d6d61c1d5a2670fe52c79bce4f11facdb (diff)
rustfmt
Diffstat (limited to 'dhall_core/src')
-rw-r--r--dhall_core/src/parser.rs31
1 files changed, 15 insertions, 16 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs
index f8e69db..57dd151 100644
--- a/dhall_core/src/parser.rs
+++ b/dhall_core/src/parser.rs
@@ -650,26 +650,25 @@ rule!(non_empty_optional<BoxExpr>;
}
);
-
// List of rules that can be shortcutted as implemented in binop!()
fn can_be_shortcutted(rule: Rule) -> bool {
use Rule::*;
match rule {
- import_alt_expression |
- or_expression |
- plus_expression |
- text_append_expression |
- list_append_expression |
- and_expression |
- combine_expression |
- prefer_expression |
- combine_types_expression |
- times_expression |
- equal_expression |
- not_equal_expression |
- application_expression |
- selector_expression_raw |
- annotated_expression => true,
+ import_alt_expression
+ | or_expression
+ | plus_expression
+ | text_append_expression
+ | list_append_expression
+ | and_expression
+ | combine_expression
+ | prefer_expression
+ | combine_types_expression
+ | times_expression
+ | equal_expression
+ | not_equal_expression
+ | application_expression
+ | selector_expression_raw
+ | annotated_expression => true,
_ => false,
}
}