Skip to content

Commit

Permalink
src: use qualified std::move call in node_http2
Browse files Browse the repository at this point in the history
Also iwyu in that file.

Closes: nodejs#45543
PR-URL: nodejs#45555
Fixes: nodejs#45543
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: Stephen Belanger <[email protected]>
  • Loading branch information
targos authored and marco-ippolito committed Nov 23, 2022
1 parent 16cedc8 commit f962e46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
#include "util-inl.h"

#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include <vector>

namespace node {

Expand Down Expand Up @@ -644,7 +648,7 @@ void Http2Stream::EmitStatistics() {
duration,
statistics_);

env()->SetImmediate([entry = move(entry)](Environment* env) {
env()->SetImmediate([entry = std::move(entry)](Environment* env) {
if (HasHttp2Observer(env))
entry->Notify(env);
});
Expand Down

0 comments on commit f962e46

Please sign in to comment.