Fix clang-tidy erros

This commit is contained in:
JCW
2026-05-01 13:47:51 +01:00
parent 2e76861945
commit 418f67077c
2 changed files with 2 additions and 1 deletions

View File

@@ -205,6 +205,7 @@ class Logger
*/
template <typename T>
[[maybe_unused]] Pump&
// NOLINTNEXTLINE(cppcoreguidelines-rvalue-reference-param-not-moved)
operator<<(xrpl::log::Parameter<T>&& p)
{
if (enabled_)

View File

@@ -589,7 +589,7 @@ TEST_F(LoggerFixture, double_init_throws)
// Second init should throw because LogServiceState is already initialized
LoggingConfiguration const config{};
EXPECT_THROW(LogService::init(config), std::logic_error);
EXPECT_THROW(auto _ = LogService::init(config), std::logic_error);
}
TEST_F(LoggerFixture, reset_before_init_throws)