remove unneeded .as_ref() calls
This commit is contained in:
@@ -17,7 +17,7 @@ impl Hasher for BLAKE512 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
|
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
|
||||||
self.hasher.update(bytes.as_ref())
|
self.hasher.update(bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn complete(mut self) -> HashReturn {
|
fn complete(mut self) -> HashReturn {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ impl Hasher for MD5 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
|
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
|
||||||
self.hasher.update(bytes.as_ref())
|
self.hasher.update(bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn complete(mut self) -> HashReturn {
|
fn complete(mut self) -> HashReturn {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ impl Hasher for SHA1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
|
fn digest(&mut self, bytes: impl AsRef<[u8]>) {
|
||||||
self.hasher.update(bytes.as_ref())
|
self.hasher.update(bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn complete(mut self) -> HashReturn {
|
fn complete(mut self) -> HashReturn {
|
||||||
|
|||||||
Reference in New Issue
Block a user