src: use qualified std::move call in node_http2

Also iwyu in that file.

Closes: https://github.com/nodejs/node/issues/45543
PR-URL: https://github.com/nodejs/node/pull/45555
Fixes: https://github.com/nodejs/node/issues/45543
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
This commit is contained in:
Michaël Zasso authored and Danielle Adams committed 2023-01-03 08:39:00 -05:00
1 parent 30a8604143
commit 3f6f8f920f
1 file changed
+5 -1
+5 -1
View File
@@ -14,6 +14,10 @@
#include "util-inl.h"
#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include <vector>
namespace node {
@@ -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);
});