Skip to content

Commit 6cbfde7

Browse files
QrczakMKcopybara-github
authored andcommitted
Apply std::move() to final occurrences of options.
PiperOrigin-RevId: 767592148
1 parent 381344b commit 6cbfde7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python/array_record_module.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ limitations under the License.
1818

1919
#include <stdexcept>
2020
#include <string>
21+
#include <utility>
2122
#include <vector>
2223

2324
#include "absl/status/status.h"
@@ -91,7 +92,8 @@ PYBIND11_MODULE(array_record_module, m) {
9192
// Release the GIL because IO is time consuming.
9293
py::gil_scoped_release scoped_release;
9394
return new array_record::ArrayRecordReader(
94-
riegeli::Maker<riegeli::FdReader>(path, file_reader_options),
95+
riegeli::Maker<riegeli::FdReader>(
96+
path, std::move(file_reader_options)),
9597
status_or_option.value(),
9698
array_record::ArrayRecordGlobalPool());
9799
}),

0 commit comments

Comments
 (0)