Commit 41c72bb54c

daurnimator <quae@daurnimator.com>
2019-11-17 04:08:52
std: fix use of old syntax in std.valgrind.memcheck
1 parent cc76494
Changed files (1)
lib
std
valgrind
lib/std/valgrind/memcheck.zig
@@ -125,7 +125,7 @@ const CountResult = struct {
 };
 
 pub fn countLeaks() CountResult {
-    var res = CountResult{
+    var res: CountResult = .{
         .leaked = 0,
         .dubious = 0,
         .reachable = 0,
@@ -136,7 +136,7 @@ pub fn countLeaks() CountResult {
 }
 
 pub fn countLeakBlocks() CountResult {
-    var res = CountResult{
+    var res: CountResult = .{
         .leaked = 0,
         .dubious = 0,
         .reachable = 0,