remove Mu::format, use mu_format

Use the new fmt-based formatting.
This commit is contained in:
Dirk-Jan C. Binnema
2023-08-19 17:13:01 +03:00
parent ce397f3c25
commit 15f08488d3
10 changed files with 52 additions and 139 deletions

View File

@ -25,7 +25,7 @@
#include <errno.h>
#include <cstdint>
#include "mu-utils-format.hh"
#include "mu-utils.hh"
#include <glib.h>
#ifndef FMT_HEADER_ONLY
@ -166,6 +166,12 @@ private:
const std::string what_;
};
static inline auto
format_as(const Error& err) {
return mu_format("<{} ({})>", err.what(), Error::error_number(err.code()));
}
} // namespace Mu
#endif /* MU_ERROR_HH__ */