From 208928ded5534c05ab8afeb6c0575f17347b5964 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 17 Oct 2023 19:29:06 +0200 Subject: [PATCH] fix: lint --- include/modules/cpu_usage.hpp | 3 ++- include/modules/load.hpp | 1 - src/modules/clock.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/modules/cpu_usage.hpp b/include/modules/cpu_usage.hpp index 4349f705..c93a1734 100644 --- a/include/modules/cpu_usage.hpp +++ b/include/modules/cpu_usage.hpp @@ -21,7 +21,8 @@ class CpuUsage : public ALabel { auto update() -> void override; // This is a static member because it is also used by the cpu module. - static std::tuple, std::string> getCpuUsage(std::vector>&); + static std::tuple, std::string> getCpuUsage( + std::vector>&); private: static std::vector> parseCpuinfo(); diff --git a/include/modules/load.hpp b/include/modules/load.hpp index 2c4ce610..c4c06d26 100644 --- a/include/modules/load.hpp +++ b/include/modules/load.hpp @@ -24,7 +24,6 @@ class Load : public ALabel { static std::tuple getLoad(); private: - util::SleeperThread thread_; }; diff --git a/src/modules/clock.cpp b/src/modules/clock.cpp index 27b7da5e..4c4bcc43 100644 --- a/src/modules/clock.cpp +++ b/src/modules/clock.cpp @@ -175,7 +175,8 @@ auto waybar::modules::Clock::update() -> void { tz, date::local_days(shiftedDay) + (now.get_local_time() - date::floor(now.get_local_time())))}; - label_.set_markup(fmt::format(locale_, fmt::runtime(format_), now.get_local_time().time_since_epoch())); + label_.set_markup( + fmt::format(locale_, fmt::runtime(format_), now.get_local_time().time_since_epoch())); if (tooltipEnabled()) { const std::string tz_text{(is_timezoned_list_in_tooltip_) ? timezones_text(now.get_sys_time())