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:
parent
d53970d31b
commit
f5a2136a40
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue