4d601b01b2fa — Nathan Michaels 5 years ago
Update to support Zig 0.6
1 files changed, 4 insertions(+), 3 deletions(-)

M src/secretstream.zig
M src/secretstream.zig +4 -3
@@ 267,14 267,15 @@ test "chunks" {
     var decrypter = try Decrypter.init(malloc, key, encrypter.hdr);
     defer decrypter.deinit();
 
-    for (encrypter.data.toSlice()) |chunk| {
+    for (encrypter.data.items) |chunk| {
         try decrypter.pull_chunk(chunk);
     }
 
-    const decrypted = try malloc.alloc(u8, decrypter.data.len * chunk_size);
+    const decrypted = try malloc.alloc(u8, decrypter.data.items.len *
+        chunk_size);
     defer malloc.free(decrypted);
 
-    for (decrypter.data.toSlice()) |chunk, off| {
+    for (decrypter.data.items) |chunk, off| {
         const base: usize = off * chunk_size;
         var idx: usize = 0;
         while (idx < chunk_size) : (idx += 1) {