Fix violations of unused-lambda-capture
[folly.git] / folly / io / async / test / EventBaseTest.cpp
index 8a7f86c099de599342c25ad4765a0c32094f15d6..8819baa23a51cb8641a6e472dd81beb63c72ad67 100644 (file)
@@ -1809,7 +1809,7 @@ TEST(EventBaseTest, LoopKeepAliveWithLoopForever) {
     /* sleep override */
     std::this_thread::sleep_for(std::chrono::milliseconds(30));
     ASSERT_FALSE(done) << "Loop terminated early";
-    ev->runInEventBaseThread([&ev, keepAlive = std::move(keepAlive) ]{});
+    ev->runInEventBaseThread([keepAlive = std::move(keepAlive)]{});
   }
 
   evThread.join();