[pbs-devel] [PATCH proxmox 2/9] proxmox/tools/byte_buffer: impl Default

Dominik Csapak d.csapak at proxmox.com
Tue Jul 14 13:09:50 CEST 2020


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 proxmox/src/tools/byte_buffer.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/proxmox/src/tools/byte_buffer.rs b/proxmox/src/tools/byte_buffer.rs
index 7d4fce4..f01a6dd 100644
--- a/proxmox/src/tools/byte_buffer.rs
+++ b/proxmox/src/tools/byte_buffer.rs
@@ -179,6 +179,12 @@ impl ByteBuffer {
     }
 }
 
+impl Default for ByteBuffer {
+    fn default() -> Self {
+        Self::new()
+    }
+}
+
 impl std::ops::Deref for ByteBuffer {
     type Target = [u8];
 
-- 
2.20.1






More information about the pbs-devel mailing list