fix ringbuffer_sink moving warning (#2722)

This commit is contained in:
James Ruan 2023-04-28 23:59:35 +08:00 committed by GitHub
parent c65aa4e488
commit e4f92bed48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ public:
{ {
memory_buf_t formatted; memory_buf_t formatted;
base_sink<Mutex>::formatter_->format(q_.at(i), formatted); base_sink<Mutex>::formatter_->format(q_.at(i), formatted);
ret.push_back(std::move(SPDLOG_BUF_TO_STRING(formatted))); ret.push_back(SPDLOG_BUF_TO_STRING(formatted));
} }
return ret; return ret;
} }