std::move the into the path info map

This commit is contained in:
John Ericson 2023-12-09 12:11:04 -05:00
parent d0d3b0a298
commit f6f817926a

View file

@ -341,7 +341,7 @@ static std::map<StorePath, UnkeyedValidPathInfo> queryPathInfos(
auto storePath = localStore.parseStorePath(storePathS);
auto info = ServeProto::Serialise<UnkeyedValidPathInfo>::read(localStore, conn);
infos.insert_or_assign(storePath, info);
infos.insert_or_assign(std::move(storePath), std::move(info));
}
return infos;