Update according to the latest clippy

This commit is contained in:
Luke Parker
2022-09-04 21:23:38 -04:00
parent 73566e756d
commit 31b64b3082
7 changed files with 14 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ pub struct DigestTranscript<D: SecureDigest>(D);
impl<D: SecureDigest> DigestTranscript<D> {
fn append(&mut self, kind: DigestTranscriptMember, value: &[u8]) {
self.0.update(&[kind.as_u8()]);
self.0.update([kind.as_u8()]);
// Assumes messages don't exceed 16 exabytes
self.0.update(u64::try_from(value.len()).unwrap().to_le_bytes());
self.0.update(value);