From cd69d36b45606ea6cff64d43acf8acb870195eb1 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 25 Oct 2019 17:22:41 +0200 Subject: [PATCH] src/backup/dynamic_index.rs: use write_all() --- src/backup/dynamic_index.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backup/dynamic_index.rs b/src/backup/dynamic_index.rs index eb261272..ef6b3178 100644 --- a/src/backup/dynamic_index.rs +++ b/src/backup/dynamic_index.rs @@ -509,8 +509,8 @@ impl DynamicIndexWriter { csum.update(digest); } - self.writer.write(offset_le)?; - self.writer.write(digest)?; + self.writer.write_all(offset_le)?; + self.writer.write_all(digest)?; Ok(()) } }