Skip to content

Commit

Permalink
style: clang-tidy auto fixes (#1766)
Browse files Browse the repository at this point in the history
Fixes #1765.
  • Loading branch information
github-actions[bot] authored Dec 2, 2024
1 parent fe4f95d commit 66691c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
10 changes: 4 additions & 6 deletions tests/unit/rpc/handlers/AllHandlerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,21 @@
#include "util/Assert.hpp"
#include "util/HandlerBaseTestFixture.hpp"
#include "util/MockAmendmentCenter.hpp"
#include "util/MockCounters.hpp"
#include "util/MockCountersFixture.hpp"
#include "util/MockETLService.hpp"
#include "util/MockETLServiceTestFixture.hpp"
#include "util/MockLoadBalancer.hpp"
#include "util/MockSubscriptionManager.hpp"
#include "util/MockWsBase.hpp"
#include "util/TestObject.hpp"
#include "web/SubscriptionContextInterface.hpp"

#include <boost/asio/executor_work_guard.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/json/parse.hpp>
#include <fmt/core.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <xrpl/protocol/AccountID.h>
#include <xrpl/protocol/Book.h>
#include <xrpl/protocol/Issue.h>
#include <xrpl/protocol/UintTypes.h>

#include <memory>
Expand Down Expand Up @@ -247,7 +245,7 @@ TYPED_TEST(AllHandlersDeathTest, NoRangeAvailable)
// doesn't work without 'this'
this->runSpawn(
[&](boost::asio::yield_context yield) {
TypeParam handler = this->handler_;
TypeParam const handler = this->handler_;

auto const input = createInput<TypeParam>();
auto const context = Context{yield, this->session_};
Expand Down
3 changes: 0 additions & 3 deletions tests/unit/rpc/handlers/LedgerEntryTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
#include "util/NameGenerator.hpp"
#include "util/TestObject.hpp"

#include <boost/asio/executor_work_guard.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/json/array.hpp>
#include <boost/json/object.hpp>
#include <boost/json/parse.hpp>
Expand Down

0 comments on commit 66691c4

Please sign in to comment.