std: fix use of old syntax in std.valgrind.memcheck

master
daurnimator 2019-11-17 14:08:52 +11:00
parent cc76494c42
commit 41c72bb54c
No known key found for this signature in database
GPG Key ID: 45B429A8F9D9D22A
1 changed files with 2 additions and 2 deletions

View File

@ -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,