summaryrefslogtreecommitdiff
path: root/dhall_syntax/src/parser.rs
diff options
context:
space:
mode:
authorNadrieril2019-11-11 09:16:38 +0000
committerNadrieril2019-11-11 09:16:38 +0000
commit1837943ba9f92cf1d941c52d5b895f6573e152bf (patch)
treeafeb3fdd427f859142b9286c9871e0f80960c0fd /dhall_syntax/src/parser.rs
parent8a8eeeac3b4f7761fd0916ee69d182597090039d (diff)
Run `cargo fmt`
Diffstat (limited to '')
-rw-r--r--dhall_syntax/src/parser.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/dhall_syntax/src/parser.rs b/dhall_syntax/src/parser.rs
index f2dea53..83f62ee 100644
--- a/dhall_syntax/src/parser.rs
+++ b/dhall_syntax/src/parser.rs
@@ -335,7 +335,9 @@ impl DhallParser {
"Type" => Const(crate::Const::Type),
"Kind" => Const(crate::Const::Kind),
"Sort" => Const(crate::Const::Sort),
- _ => Err(input.error(format!("Unrecognized builtin: '{}'", s)))?,
+ _ => {
+ Err(input.error(format!("Unrecognized builtin: '{}'", s)))?
+ }
},
};
Ok(spanned(input, e))
@@ -447,9 +449,7 @@ impl DhallParser {
}
#[alias(local_path)]
- fn parent_path(
- input: ParseInput,
- ) -> ParseResult<(FilePrefix, FilePath)> {
+ fn parent_path(input: ParseInput) -> ParseResult<(FilePrefix, FilePath)> {
Ok(match_nodes!(input.into_children();
[path(p)] => (FilePrefix::Parent, p)
))
@@ -467,9 +467,7 @@ impl DhallParser {
))
}
#[alias(local_path)]
- fn absolute_path(
- input: ParseInput,
- ) -> ParseResult<(FilePrefix, FilePath)> {
+ fn absolute_path(input: ParseInput) -> ParseResult<(FilePrefix, FilePath)> {
Ok(match_nodes!(input.into_children();
[path(p)] => (FilePrefix::Absolute, p)
))