Skip to content

Commit 8727ff0

Browse files
authored
feat(storage): Do not move while creating current variable (#15237)
1 parent 05b46d0 commit 8727ff0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/storage/internal/async/connection_impl.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ future<
195195
StatusOr<std::shared_ptr<storage_experimental::ObjectDescriptorConnection>>>
196196
AsyncConnectionImpl::Open(OpenParams p) {
197197
auto initial_request = google::storage::v2::BidiReadObjectRequest{};
198-
*initial_request.mutable_read_object_spec() = std::move(p.read_spec);
199-
auto current = internal::MakeImmutableOptions(std::move(p.options));
198+
*initial_request.mutable_read_object_spec() = p.read_spec;
199+
auto current = internal::MakeImmutableOptions(p.options);
200200
// Get the policy factory and immediately create a policy.
201201
auto resume_policy =
202202
current->get<storage_experimental::ResumePolicyOption>()();

0 commit comments

Comments
 (0)