From 39477f9863ad758530c4ce5d17ed11b0e8611987 Mon Sep 17 00:00:00 2001 From: Oliver Chen Date: Mon, 14 Apr 2025 12:03:28 +0000 Subject: [PATCH] Fix clang-tidy warning of unnecessary std::move() for const ref --- pdns/dnsdistdist/dnsdist-backend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist-backend.cc b/pdns/dnsdistdist/dnsdist-backend.cc index 2465a2b726..31e9d254cd 100644 --- a/pdns/dnsdistdist/dnsdist-backend.cc +++ b/pdns/dnsdistdist/dnsdist-backend.cc @@ -452,7 +452,7 @@ void DownstreamState::handleUDPTimeout(IDState& ids) const auto& chains = dnsdist::configuration::getCurrentRuntimeConfiguration().d_ruleChains; const auto& timeoutRespRules = dnsdist::rules::getResponseRuleChain(chains, dnsdist::rules::ResponseRuleChain::TimeoutResponseRules); auto sender = ids.internal.du == nullptr ? nullptr : ids.internal.du->getQuerySender(); - if (!handleTimeoutResponseRules(timeoutRespRules, ids.internal, shared_from_this(), std::move(sender))) { + if (!handleTimeoutResponseRules(timeoutRespRules, ids.internal, shared_from_this(), sender)) { DOHUnitInterface::handleTimeout(std::move(ids.internal.du)); } -- 2.47.2