it is the last consumer of cmdline, so move it away.
Signed-off-by: Kefu Chai <kchai@redhat.com>
seastar::future<> AdminSocket::execute_line(std::string cmdline,
seastar::output_stream<char>& out)
{
- return execute_command({cmdline}, {}).then([&out, this](auto result) {
+ return execute_command({std::move(cmdline)}, {}).then([&out, this](auto result) {
auto [ret, stderr, stdout] = std::move(result);
if (ret < 0) {
stdout.append(fmt::format("ERROR: {}\n", cpp_strerror(ret)));