Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79c30e7

Browse files
committed
fix: lint
1 parent b0983e9 commit 79c30e7

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

src/modules/mpd/mpd.cpp

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ void waybar::modules::MPD::setLabel() {
185185
fmt::arg("songPosition", song_pos), fmt::arg("queueLength", queue_length),
186186
fmt::arg("stateIcon", stateIcon), fmt::arg("consumeIcon", consumeIcon),
187187
fmt::arg("randomIcon", randomIcon), fmt::arg("repeatIcon", repeatIcon),
188-
fmt::arg("singleIcon", singleIcon), fmt::arg("filename", filename),
189-
fmt::arg("uri", uri));
188+
fmt::arg("singleIcon", singleIcon), fmt::arg("filename", filename), fmt::arg("uri", uri));
190189
if (text.empty()) {
191190
label_.hide();
192191
} else {
@@ -202,16 +201,15 @@ void waybar::modules::MPD::setLabel() {
202201
tooltip_format = config_["tooltip-format"].isString() ? config_["tooltip-format"].asString()
203202
: "MPD (connected)";
204203
try {
205-
auto tooltip_text =
206-
fmt::format(fmt::runtime(tooltip_format), fmt::arg("artist", artist.raw()),
207-
fmt::arg("albumArtist", album_artist.raw()), fmt::arg("album", album.raw()),
208-
fmt::arg("title", title.raw()), fmt::arg("date", date),
209-
fmt::arg("volume", volume), fmt::arg("elapsedTime", elapsedTime),
210-
fmt::arg("totalTime", totalTime), fmt::arg("songPosition", song_pos),
211-
fmt::arg("queueLength", queue_length), fmt::arg("stateIcon", stateIcon),
212-
fmt::arg("consumeIcon", consumeIcon), fmt::arg("randomIcon", randomIcon),
213-
fmt::arg("repeatIcon", repeatIcon), fmt::arg("singleIcon", singleIcon),
214-
fmt::arg("filename", filename), fmt::arg("uri", uri));
204+
auto tooltip_text = fmt::format(
205+
fmt::runtime(tooltip_format), fmt::arg("artist", artist.raw()),
206+
fmt::arg("albumArtist", album_artist.raw()), fmt::arg("album", album.raw()),
207+
fmt::arg("title", title.raw()), fmt::arg("date", date), fmt::arg("volume", volume),
208+
fmt::arg("elapsedTime", elapsedTime), fmt::arg("totalTime", totalTime),
209+
fmt::arg("songPosition", song_pos), fmt::arg("queueLength", queue_length),
210+
fmt::arg("stateIcon", stateIcon), fmt::arg("consumeIcon", consumeIcon),
211+
fmt::arg("randomIcon", randomIcon), fmt::arg("repeatIcon", repeatIcon),
212+
fmt::arg("singleIcon", singleIcon), fmt::arg("filename", filename), fmt::arg("uri", uri));
215213
label_.set_tooltip_text(tooltip_text);
216214
} catch (fmt::format_error const& e) {
217215
spdlog::warn("mpd: format error (tooltip): {}", e.what());

src/modules/river/layout.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ void Layout::handle_name(const char *name) {
152152
label_.get_style_context()->add_class(name);
153153
label_.set_markup(fmt::format(fmt::runtime(format_), Glib::Markup::escape_text(name).raw()));
154154
label_.show();
155-
156155
}
157156
name_ = name;
158157
ALabel::update();

src/modules/sni/tray.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <spdlog/spdlog.h>
44

55
#include <algorithm>
6+
67
#include "modules/sni/icon_manager.hpp"
78

89
namespace waybar::modules::SNI {

0 commit comments

Comments
 (0)