From 3f41feb6e022a30cfce39ec40c7ffda46d75193d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 26 May 2023 15:06:49 +0200 Subject: style: Use designated initializers This feature has been introduced with C++20. --- test/buildtool/execution_engine/executor/executor.test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/buildtool/execution_engine/executor/executor.test.cpp') diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp index 6793014b..1f0312f7 100644 --- a/test/buildtool/execution_engine/executor/executor.test.cpp +++ b/test/buildtool/execution_engine/executor/executor.test.cpp @@ -80,8 +80,8 @@ class TestResponse : public IExecutionResponse { artifacts.emplace( path, Artifact::ObjectInfo{ - ArtifactDigest{path, 0, /*is_tree=*/false}, - ObjectType::File}); + .digest = ArtifactDigest{path, 0, /*is_tree=*/false}, + .type = ObjectType::File}); } catch (...) { return {}; } -- cgit v1.2.3