From b29846fb72326dc04bc13fe11d07965879787533 Mon Sep 17 00:00:00 2001 From: krolxon Date: Wed, 1 May 2024 00:06:50 +0530 Subject: abide by the lord clippy --- src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui.rs') diff --git a/src/ui.rs b/src/ui.rs index 37c4b99..6f9b0a0 100755 --- a/src/ui.rs +++ b/src/ui.rs @@ -297,10 +297,10 @@ fn draw_progress_bar(frame: &mut Frame, app: &mut App, size: Rect) { // Define the title let title = Block::default() - .title(Title::from(format!("{}", state).red().bold())) + .title(Title::from(state.red().bold())) .title(Title::from(song.green().bold())) .title(Title::from(duration.cyan().bold()).alignment(Alignment::Right)) - .title(Title::from(format!("{}", modes_bottom)).position(block::Position::Bottom)) + .title(Title::from(modes_bottom).position(block::Position::Bottom)) .borders(Borders::ALL); let progress_bar = LineGauge::default() -- cgit v1.2.3