diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 13:58:24 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-03 13:58:24 +0100 |
commit | bd153237fc6eb0a841f4d8b8d79f3383b7115b00 (patch) | |
tree | 07b7e8ad7b12d68da2b86729b68a219cff3cf6e0 /openpgp/src/parse/hashed_reader.rs | |
parent | 88442e46a8f5639c4493713baeb5b90f7cf6a84b (diff) |
openpgp: Rename openpgp::conversions to openpgp::fmt.
Diffstat (limited to 'openpgp/src/parse/hashed_reader.rs')
-rw-r--r-- | openpgp/src/parse/hashed_reader.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/parse/hashed_reader.rs b/openpgp/src/parse/hashed_reader.rs index 120cf222..a8ec36cf 100644 --- a/openpgp/src/parse/hashed_reader.rs +++ b/openpgp/src/parse/hashed_reader.rs @@ -88,7 +88,7 @@ impl Cookie { if self.hashing == Hashing::Disabled { t!(" hash_update: NOT hashing {} bytes: {}.", - data.len(), crate::conversions::to_hex(data, true)); + data.len(), crate::fmt::to_hex(data, true)); return; } @@ -96,7 +96,7 @@ impl Cookie { for (i, sig_group) in self.sig_groups.iter_mut().enumerate() { if topmost_group(i) && self.hashing != Hashing::Enabled { t!("topmost group {} NOT hashing {} bytes: {}.", - i, data.len(), crate::conversions::to_hex(data, true)); + i, data.len(), crate::fmt::to_hex(data, true)); return; } @@ -280,7 +280,7 @@ mod test { hash.digest(&mut digest); assert_eq!(digest, - &crate::conversions::from_hex(test.expected.get(algo) + &crate::fmt::from_hex(test.expected.get(algo) .unwrap(), true) .unwrap()[..], "Algo: {:?}", algo); |