The code was actually correct, but clang tidy complaint about using the Vector after it was moved from.