It's typically only worth specifying specific captures when the lambda is stored as a function object for use later. Since this is just passed as a FunctionRef as an iteration callback, we can use a less complex capture here. That also helps clarify that this isn't a callback.