summaryrefslogtreecommitdiff
path: root/dhall/src/syntax
diff options
context:
space:
mode:
authorNadrieril2020-02-02 17:49:49 +0000
committerNadrieril2020-02-02 17:49:49 +0000
commitb6625eccbf3f2d1bcfe1a88f4d556439281e91de (patch)
tree5ce5357114855d828aad5a6ba394e2b75334c5d0 /dhall/src/syntax
parent4f98c23963e82eaf08c9d7291d0988d13571d337 (diff)
Use Spans consistently by value
Diffstat (limited to '')
-rw-r--r--dhall/src/syntax/text/parser.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/dhall/src/syntax/text/parser.rs b/dhall/src/syntax/text/parser.rs
index ceae2cd..8d571c0 100644
--- a/dhall/src/syntax/text/parser.rs
+++ b/dhall/src/syntax/text/parser.rs
@@ -82,11 +82,7 @@ fn input_to_span(input: ParseInput) -> Span {
fn spanned(input: ParseInput, x: UnspannedExpr) -> Expr {
Expr::new(x, input_to_span(input))
}
-fn spanned_union(
- span1: Span,
- span2: Span,
- x: UnspannedExpr,
-) -> Expr {
+fn spanned_union(span1: Span, span2: Span, x: UnspannedExpr) -> Expr {
Expr::new(x, span1.union(&span2))
}