Fix build with fmt 11
fmt 11 enforces that fmt::formatter<..>::format() should be const.
otherwise the tree does not build:
```
/usr/include/fmt/base.h:1392:29: error: passing ‘const fmt::v11::formatter<std::optional<mtx::http::ClientError> >’ as ‘this’ argument discards qualifiers [-fpermissive]
1392 | ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
so let's mark the `format()` with `const` specifier.
Signed-off-by:
Kefu Chai <tchaikov@gmail.com>
Please register or sign in to comment