fix(telemetry): resolve clang-tidy include and modernize-use-auto CI errors

- Replace unused observer_result.h with nostd/shared_ptr.h and
  nostd/unique_ptr.h in MetricsRegistry.h (misc-include-cleaner)
- Use auto for cast initializations in MetricsRegistry.cpp and
  ValidationTracker test (modernize-use-auto)
- Run rename scripts: rippled -> xrpld in comments and docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Pratik Mankawde
2026-07-08 15:36:44 +01:00
parent 1730cdb50d
commit 0ee6da59be
5 changed files with 8 additions and 7 deletions

View File

@@ -178,7 +178,7 @@ TEST_F(ValidationTrackerTest, MaxPendingEventsTrimming)
for (std::size_t i = 0; i < kCount; ++i)
{
auto const hash = makeHash(i + 1);
LedgerIndex const seq = static_cast<LedgerIndex>(i + 1);
auto const seq = static_cast<LedgerIndex>(i + 1);
tracker_.recordOurValidation(hash, seq);
tracker_.recordNetworkValidation(hash, seq);
}