diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/color.cpp | 6 | ||||
-rw-r--r-- | src/util/function.tpp | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/util/color.cpp b/src/util/color.cpp index 8f23f41..8ec3ad4 100644 --- a/src/util/color.cpp +++ b/src/util/color.cpp @@ -5,13 +5,11 @@ auto get_foreground_esc_seq(const uint32_t &color) noexcept -> std::string { return { - fmt::detail::make_foreground_color<char>(fmt::detail::color_type(color)).begin() - }; + fmt::detail::make_foreground_color<char>(fmt::detail::color_type(color)).begin()}; } auto get_background_esc_seq(const uint32_t &color) noexcept -> std::string { return { - fmt::detail::make_background_color<char>(fmt::detail::color_type(color)).begin() - }; + fmt::detail::make_background_color<char>(fmt::detail::color_type(color)).begin()}; } diff --git a/src/util/function.tpp b/src/util/function.tpp index 0a7a6d6..9d3d38c 100644 --- a/src/util/function.tpp +++ b/src/util/function.tpp @@ -52,8 +52,8 @@ get_normalized_lambda(Function &&func, Signature<Return(Args...)> /*unused*/) no // lamda capture static auto static_func = Function(std::forward<Function>(func)); - return +[](Args... args) noexcept(noexcept(std::declval<Function>( - )(std::forward<Args>(args)...))) -> Return + return +[](Args... args) noexcept( + noexcept(std::declval<Function>()(std::forward<Args>(args)...))) -> Return { return static_func(std::forward<Args>(args)...); }; @@ -72,6 +72,5 @@ constexpr auto normalize_lambda(Function &&func) noexcept { return get_normalized_lambda( std::forward<Function>(func), - extract_signature(std::forward<Function>(func)) - ); + extract_signature(std::forward<Function>(func))); } |