aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-29 17:40:04 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commita039c8ad36779903571419cb06cd052f8fc41512 (patch)
tree4fdced6941a048bdd4b032fab7012bca00a6028e /src/util
parentacf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff)
refactor: use trailing return types
Diffstat (limited to 'src/util')
-rw-r--r--src/util/color.cpp4
-rw-r--r--src/util/color.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/util/color.cpp b/src/util/color.cpp
index 17665de..10496b1 100644
--- a/src/util/color.cpp
+++ b/src/util/color.cpp
@@ -2,13 +2,13 @@
#include <fmt/color.h>
-std::string get_foreground_esc_seq(const uint32_t &color) noexcept
+auto get_foreground_esc_seq(const uint32_t &color) noexcept -> std::string
{
return std::string(
fmt::detail::make_foreground_color<char>(fmt::detail::color_type(color)).begin());
}
-std::string get_background_esc_seq(const uint32_t &color) noexcept
+auto get_background_esc_seq(const uint32_t &color) noexcept -> std::string
{
return std::string(
fmt::detail::make_background_color<char>(fmt::detail::color_type(color)).begin());
diff --git a/src/util/color.hpp b/src/util/color.hpp
index 5511893..f7c38d2 100644
--- a/src/util/color.hpp
+++ b/src/util/color.hpp
@@ -5,6 +5,6 @@
constexpr fmt::string_view RESET_ALL_MODES = "{esc}[0m";
-std::string get_foreground_esc_seq(const uint32_t &color) noexcept;
+auto get_foreground_esc_seq(const uint32_t &color) noexcept -> std::string;
-std::string get_background_esc_seq(const uint32_t &color) noexcept;
+auto get_background_esc_seq(const uint32_t &color) noexcept -> std::string;