Skip to content

Commit 9173f96

Browse files
rlyerlymeta-codesync[bot]
authored andcommitted
Fix lints in SlabAllocatorTest
Summary: ^ ___ overriding_review_checks_triggers_an_audit_and_retroactive_review Oncall Short Name: cachelib Differential Revision: D100991081 fbshipit-source-id: 280eb6b625beaf0eba51d3cde51c50b02ef083cf
1 parent 28a69bf commit 9173f96

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cachelib/allocator/memory/tests/SlabAllocatorTest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include <algorithm>
2222
#include <cstdlib>
23-
#include <memory>
2423
#include <random>
2524
#include <vector>
2625

@@ -835,11 +834,11 @@ TEST_F(SlabAllocatorTest, TestGenerateAllocSizesPowerOf2WithBadParams) {
835834
}
836835

837836
namespace {
838-
auto expectAllAllocSizesValid = [](const std::set<uint32_t>& allocSizes) {
837+
void expectAllAllocSizesValid(const std::set<uint32_t>& allocSizes) {
839838
for (auto allocSize : allocSizes) {
840839
EXPECT_TRUE(MemoryAllocator::isValidAllocSize(allocSize));
841840
}
842-
};
841+
}
843842
} // namespace
844843

845844
TEST_F(SlabAllocatorTest, TestGenerateAllocSizesForItemRange) {

0 commit comments

Comments
 (0)