From cfeb4d84a3d73903d2bd85d2d6521bee07c55524 Mon Sep 17 00:00:00 2001 From: red thing Date: Thu, 27 Oct 2022 10:24:15 -0700 Subject: [PATCH] Fix usage of the deprecated `body` keyword Fix this warning: ``` zstd-0.2.1/zstd/source/zstd/compress.d(53,5): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. ``` --- source/zstd/compress.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/zstd/compress.d b/source/zstd/compress.d index 20b1d30..bdbe419 100644 --- a/source/zstd/compress.d +++ b/source/zstd/compress.d @@ -50,7 +50,7 @@ class Compressor { assert(Level.min <= level && level <= Level.max); } - body + do { cstream = ZSTD_createCStream(); buffer = new ubyte[](recommendedOutSize);