[ox/{claw,mc}] Fix write functions to move return values

This commit is contained in:
2021-05-03 20:37:20 -04:00
parent 947b1e7798
commit 1da5e60655
2 changed files with 2 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ Result<Buffer> writeMC(T *val) {
MetalClawWriter writer(bit_cast<uint8_t*>(buff.data()), buff.size());
oxReturnError(model(&writer, val));
buff.resize(writer.size());
return buff;
return move(buff);
}
template<typename T>