mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
fix(treewide): fix incorrect usage of std::move
`auto &&` and `T &&` are forwarding references and can be either lvalue or rvalue references. Moving from universal references is incorrect and should not be done. Moving from integral or floating-point values is pointless and just worsens debug performance.
This commit is contained in:
parent
492c678162
commit
17b49134fa
3 changed files with 3 additions and 3 deletions
|
@ -153,7 +153,7 @@ struct curlFileTransfer : public FileTransfer
|
|||
template<class T>
|
||||
void fail(T && e)
|
||||
{
|
||||
failEx(std::make_exception_ptr(std::move(e)));
|
||||
failEx(std::make_exception_ptr(std::forward<T>(e)));
|
||||
}
|
||||
|
||||
LambdaSink finalSink;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue