remove Mu::format, use mu_format
Use the new fmt-based formatting.
This commit is contained in:
@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user