serialise.cc: remove pessimising move

from clang6:

src/libutil/serialise.cc:189:23: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
This commit is contained in:
Will Dietz 2018-03-19 13:56:17 -05:00
parent d53970d31b
commit f5a2136a40

View file

@ -185,7 +185,7 @@ std::unique_ptr<Source> sinkToSource(std::function<void(Sink &)> fun)
if (pos == cur.size()) {
if (!cur.empty()) coro();
cur = std::move(coro.get());
cur = coro.get();
pos = 0;
}