fix compatibility with clang-format 18 (#6690) (#6699)

This commit is contained in:
Cœur
2024-03-16 12:29:26 +08:00
committed by GitHub
parent 2f05d1a6db
commit fd4d097d13
3 changed files with 4 additions and 5 deletions

View File

@@ -147,8 +147,7 @@ void RpcClient::sendNetworkRequest(TrVariantPtr json, QFutureInterface<RpcRespon
if (verbose_)
{
qInfo() << "sending"
<< "POST" << qPrintable(url_.path());
qInfo() << "sending POST " << qPrintable(url_.path());
for (QByteArray const& b : request_->rawHeaderList())
{

View File

@@ -32,7 +32,7 @@ namespace libtransmission::test
bool waitFor(struct event_base* event_base, std::chrono::milliseconds msec)
{
return waitFor(
return waitFor( //
event_base,
[]() { return false; },
msec);
@@ -566,7 +566,7 @@ TEST_F(DhtTest, usesBootstrapFile)
// Confirm that BootstrapNodeName gets pinged first.
auto const expected = getSockaddr(BootstrapNodeName, BootstrapNodePort);
auto& pinged = mediator.mock_dht_.pinged_;
waitFor(
waitFor( //
event_base_,
[&pinged]() { return !std::empty(pinged); },
5s);

View File

@@ -39,7 +39,7 @@ protected:
void sleepMsec(std::chrono::milliseconds msec)
{
EXPECT_FALSE(waitFor(
EXPECT_FALSE(waitFor( //
evbase_.get(),
[]() { return false; },
msec));