diff options
author | Nadrieril | 2020-11-01 16:10:00 +0000 |
---|---|---|
committer | Nadrieril | 2020-11-01 17:36:49 +0000 |
commit | 66ea301fc25a07485286560c434a9fdaf460c431 (patch) | |
tree | a0bc78be155be39e3da0ad5f61d7255057f8747a /dhall/src/syntax/binary | |
parent | 2c245e7f5ce4019381e0fa47a1e2caf6276106be (diff) |
Untangle caching code
Diffstat (limited to 'dhall/src/syntax/binary')
-rw-r--r-- | dhall/src/syntax/binary/decode.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall/src/syntax/binary/decode.rs b/dhall/src/syntax/binary/decode.rs index f4747d3..4ea7d98 100644 --- a/dhall/src/syntax/binary/decode.rs +++ b/dhall/src/syntax/binary/decode.rs @@ -290,7 +290,7 @@ fn cbor_value_to_dhall(data: &Value) -> Result<DecodedExpr, DecodeError> { Null => None, Bytes(bytes) => match bytes.as_slice() { [18, 32, rest @ ..] => { - Some(Hash::SHA256(rest.to_vec())) + Some(Hash::SHA256(rest.to_vec().into())) } _ => { return Err(DecodeError::WrongFormatError(format!( |