Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaelers committed Nov 30, 2023
1 parent bf7d965 commit 0e888ee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
14 changes: 9 additions & 5 deletions libs/utils/include/debug.hh
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@ struct gen_fmt
static constexpr std::string_view value{arr.data(), arr.size() - 2};
};

#if FMT_VERSION < 80000
# if FMT_VERSION < 80000

namespace fmt {
inline auto runtime(std::string_view s) -> std::string_view { return s; }
}
namespace fmt
{
inline auto runtime(std::string_view s) -> std::string_view
{
return s;
}
} // namespace fmt

#endif
# endif

class ScopedTrace : public boost::noncopyable
{
Expand Down
8 changes: 4 additions & 4 deletions libs/utils/include/utils/Logging.hh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ namespace workrave::utils
template<typename T>
struct fmt::formatter<std::atomic<T>> : fmt::formatter<T>
{
auto format(const typename std::atomic<T> &x, format_context &ctx) const
{
return formatter<T>::format(x.load(), ctx);
}
auto format(const typename std::atomic<T> &x, format_context &ctx) const
{
return formatter<T>::format(x.load(), ctx);
}
};

#endif
Expand Down

0 comments on commit 0e888ee

Please sign in to comment.