summaryrefslogtreecommitdiff
path: root/dhall/src/phase/binary.rs
diff options
context:
space:
mode:
authorNadrieril2019-11-11 18:20:24 +0000
committerNadrieril2019-11-11 18:20:24 +0000
commitd5b28bf2b4a5a26de67e4de731ad19699f33e75e (patch)
tree6971fcd8500b1e073116a9aad5bd54fe57ac3455 /dhall/src/phase/binary.rs
parentada19118f894fbd71642ea683d9376cbbd756f7d (diff)
rustfmt
Diffstat (limited to '')
-rw-r--r--dhall/src/phase/binary.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/dhall/src/phase/binary.rs b/dhall/src/phase/binary.rs
index 464d71a..0639120 100644
--- a/dhall/src/phase/binary.rs
+++ b/dhall/src/phase/binary.rs
@@ -187,7 +187,9 @@ fn cbor_value_to_dhall(data: &cbor::Value) -> Result<DecodedExpr, DecodeError> {
let y = cbor_value_to_dhall(&y)?;
ProjectionByExpr(x, y)
} else {
- Err(DecodeError::WrongFormatError("projection-by-expr".to_owned()))?
+ Err(DecodeError::WrongFormatError(
+ "projection-by-expr".to_owned(),
+ ))?
}
}
[U64(10), x, rest @ ..] => {
@@ -586,7 +588,9 @@ where
.chain(once(expr(x)))
.chain(ls.iter().map(label)),
),
- ProjectionByExpr(x, y) => ser_seq!(ser; tag(10), expr(x), vec![expr(y)]),
+ ProjectionByExpr(x, y) => {
+ ser_seq!(ser; tag(10), expr(x), vec![expr(y)])
+ }
Import(import) => serialize_import(ser, import),
Embed(_) => unimplemented!(
"An expression with resolved imports cannot be binary-encoded"