diff options
author | Nadrieril | 2019-08-03 21:36:53 +0200 |
---|---|---|
committer | Nadrieril | 2019-08-03 21:36:53 +0200 |
commit | 2ad5973a32099ad8f79f247adc9d03340e2df4ab (patch) | |
tree | df68024b6e40208aeb4e697163f7a29576e1319f /dhall_syntax/src/printer.rs | |
parent | 3008f5711fbe40d1930ebc36e602c29d3fbec3eb (diff) |
Update dhall-lang submodule
Diffstat (limited to 'dhall_syntax/src/printer.rs')
-rw-r--r-- | dhall_syntax/src/printer.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dhall_syntax/src/printer.rs b/dhall_syntax/src/printer.rs index f1ce230..dbed55d 100644 --- a/dhall_syntax/src/printer.rs +++ b/dhall_syntax/src/printer.rs @@ -348,7 +348,9 @@ impl Display for Label { impl Display for Hash { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { - write!(f, "{}:{}", self.protocol, self.hash) + match self { + Hash::SHA256(hash) => write!(f, "sha256:{}", hex::encode(hash)), + } } } impl Display for ImportHashed { |