From: Otto Moerbeek Date: Wed, 3 Dec 2025 08:56:31 +0000 (+0100) Subject: 1643551 Variable copied when it could be moved X-Git-Tag: rec-5.4.0-alpha1~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16587%2Fhead;p=thirdparty%2Fpdns.git 1643551 Variable copied when it could be moved Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/rec-rust-lib/cxxsupport.cc b/pdns/recursordist/rec-rust-lib/cxxsupport.cc index 2c50e00ab1..bce09eface 100644 --- a/pdns/recursordist/rec-rust-lib/cxxsupport.cc +++ b/pdns/recursordist/rec-rust-lib/cxxsupport.cc @@ -1309,7 +1309,7 @@ void fromRustToLuaConfig(const rust::Vecadd(DNSName(std::string(dom))); } } - proxyMapping.insert_or_assign(subnet, {address, smn}); + proxyMapping.insert_or_assign(subnet, {std::move(address), std::move(smn)}); } }