Remove unnecessary write_all impl

This commit is contained in:
Deirdre Connolly 2019-10-15 20:45:37 -04:00 committed by Henry de Valence
parent 051dc2f039
commit 96ad551681
1 changed files with 0 additions and 11 deletions

View File

@ -27,17 +27,6 @@ impl Write for Sha256dWriter {
Ok(buf.len())
}
fn write_all(&mut self, buf: &[u8]) -> std::io::Result<()> {
let mut length = 0;
while length != buf.len() {
length += buf.len();
self.hash.input(buf);
}
Ok(())
}
fn flush(&mut self) -> std::io::Result<()> {
Ok(())
}