Skip to content

Commit 2f1746a

Browse files
committed
cleanup
1 parent 1ae4986 commit 2f1746a

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

src/cli/args.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ use {anyhow::bail, clap::Parser};
44

55
use crate::TapError;
66

7-
// TODO - update README
8-
97
// A struct that represents the command line arguments.
108
#[derive(Debug, Parser)]
119
#[command(

src/finder/finder_view.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
use std::{cmp::min, time::Instant};
22

3-
use cursive::event::Key;
4-
use once_cell::sync::Lazy;
5-
63
use {
74
anyhow::anyhow,
85
cursive::{
9-
event::{Event, EventResult, MouseButton, MouseEvent},
6+
event::{Event, EventResult, Key, MouseButton, MouseEvent},
107
theme::Effect,
118
view::{Nameable, Resizable},
129
CbSink, Cursive, Printer, View, XY,
1310
},
11+
once_cell::sync::Lazy,
1412
rand::{seq::SliceRandom, thread_rng},
1513
unicode_segmentation::UnicodeSegmentation,
1614
unicode_width::UnicodeWidthStr,

src/player/player_view.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
use std::time::Duration;
22

3-
use cursive::{
4-
theme::Style,
5-
utils::{markup::StyledString, span::SpannedString},
6-
};
7-
83
use {
94
cursive::{
105
event::{Event, EventResult, MouseButton, MouseEvent},
11-
theme::{ColorStyle, Effect},
6+
theme::{ColorStyle, Effect, Style},
127
traits::View,
8+
utils::{markup::StyledString, span::SpannedString},
139
view::Nameable,
1410
CbSink, Cursive, Printer, XY,
1511
},
@@ -131,10 +127,7 @@ impl PlayerView {
131127
fn play_or_pause(&mut self) {
132128
match self.player.status {
133129
PlaybackStatus::Paused => self.player.resume(),
134-
PlaybackStatus::Playing => {
135-
// self.was_paused.store(true, Ordering::Relaxed);
136-
self.player.pause()
137-
}
130+
PlaybackStatus::Playing => self.player.pause(),
138131
PlaybackStatus::Stopped => self.player.play(),
139132
};
140133
}

0 commit comments

Comments
 (0)