From a039c8ad36779903571419cb06cd052f8fc41512 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 17:40:04 +0200 Subject: refactor: use trailing return types --- src/util/color.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/color.cpp') 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 -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(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(fmt::detail::color_type(color)).begin()); -- cgit v1.2.3-18-g5258