remove unneeded .as_ref() calls

This commit is contained in:
2025-08-18 20:19:48 -04:00
parent c5fb198bc6
commit eb29a2817c
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ impl Hasher for BLAKE512 {
}
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
self.hasher.update(bytes.as_ref())
self.hasher.update(bytes)
}
fn complete(mut self) -> HashReturn {

View File

@@ -15,7 +15,7 @@ impl Hasher for MD5 {
}
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
self.hasher.update(bytes.as_ref())
self.hasher.update(bytes)
}
fn complete(mut self) -> HashReturn {

View File

@@ -15,7 +15,7 @@ impl Hasher for SHA1 {
}
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
self.hasher.update(bytes.as_ref())
self.hasher.update(bytes)
}
fn complete(mut self) -> HashReturn {