From 8af635c8d70efce8482a5d8bd0c8174d76270b6f Mon Sep 17 00:00:00 2001 From: Kostas Kyrimis <kostaskyrim@gmail.com> Date: Wed, 30 Nov 2022 17:44:37 +0200 Subject: [PATCH] Fix clang-tidy warnings --- src/storage/v3/shard_rsm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/v3/shard_rsm.cpp b/src/storage/v3/shard_rsm.cpp index 4ea874770..e533008a1 100644 --- a/src/storage/v3/shard_rsm.cpp +++ b/src/storage/v3/shard_rsm.cpp @@ -533,7 +533,7 @@ msgs::ReadResponses ShardRsm::HandleRead(msgs::GetPropertiesRequest &&req) { std::vector<std::pair<PropertyId, Value>> result; result.reserve(value.size()); for (auto &[id, val] : value) { - result.push_back({id, std::move(val)}); + result.emplace_back(std::make_pair(id, std::move(val))); } return result; };