fix: remove unused this capture

This commit is contained in:
Marcus Holland-Moritz 2024-08-15 13:02:59 +02:00
parent 61336c941a
commit 011b8b1af5

View File

@ -470,15 +470,14 @@ os_access_mock::map_file(fs::path const& path, size_t size) const {
} }
return std::make_unique<mmap_mock>( return std::make_unique<mmap_mock>(
de->v | match{ de->v |
[this](std::string const& str) { return str; }, match{
[this](std::function<std::string()> const& fun) { [](std::string const& str) { return str; },
return fun(); [](std::function<std::string()> const& fun) { return fun(); },
}, [](auto const&) -> std::string {
[this](auto const&) -> std::string { throw std::runtime_error("oops in match");
throw std::runtime_error("oops in match");
},
}, },
},
size); size);
} }