diff --git a/test/test_helpers.cpp b/test/test_helpers.cpp index eb8338e6..1610b19d 100644 --- a/test/test_helpers.cpp +++ b/test/test_helpers.cpp @@ -470,15 +470,14 @@ os_access_mock::map_file(fs::path const& path, size_t size) const { } return std::make_unique( - de->v | match{ - [this](std::string const& str) { return str; }, - [this](std::function const& fun) { - return fun(); - }, - [this](auto const&) -> std::string { - throw std::runtime_error("oops in match"); - }, + de->v | + match{ + [](std::string const& str) { return str; }, + [](std::function const& fun) { return fun(); }, + [](auto const&) -> std::string { + throw std::runtime_error("oops in match"); }, + }, size); }