mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-09 04:19:10 -04:00
fix: remove unused this
capture
This commit is contained in:
parent
61336c941a
commit
011b8b1af5
@ -470,15 +470,14 @@ os_access_mock::map_file(fs::path const& path, size_t size) const {
|
||||
}
|
||||
|
||||
return std::make_unique<mmap_mock>(
|
||||
de->v | match{
|
||||
[this](std::string const& str) { return str; },
|
||||
[this](std::function<std::string()> 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<std::string()> const& fun) { return fun(); },
|
||||
[](auto const&) -> std::string {
|
||||
throw std::runtime_error("oops in match");
|
||||
},
|
||||
},
|
||||
size);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user