Skip to content

Commit

Permalink
Fixed clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ccgauche committed Apr 21, 2022
1 parent 092ab79 commit 354693d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1,144 deletions.
1 change: 0 additions & 1 deletion search.json

This file was deleted.

4 changes: 2 additions & 2 deletions src/systems/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn apply_sound_action(
}
}

sink.stop(&guard);
sink.stop(guard);
}
SoundAction::PlayVideo(video) => {
queue.push_back(video);
Expand All @@ -139,7 +139,7 @@ fn apply_sound_action(
queue.push_front(e);
}
}
sink.stop(&guard);
sink.stop(guard);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/term/music_player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl Screen for App {
_ => {}
}
}
return EventResponse::None;
EventResponse::None
}

fn render(&mut self, f: &mut tui::Frame<tui::backend::CrosstermBackend<std::io::Stdout>>) {
Expand Down Expand Up @@ -297,7 +297,7 @@ impl App {
current_time: 0,
total_time: 0,
volume: 0.5,
action_sender: action_sender,
action_sender,
}
}
pub fn new(
Expand Down
9 changes: 3 additions & 6 deletions src/term/playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl Screen for Chooser {
_ => {}
}

return EventResponse::None;
EventResponse::None
}

fn render(&mut self, frame: &mut Frame<tui::backend::CrosstermBackend<std::io::Stdout>>) {
Expand Down Expand Up @@ -105,11 +105,8 @@ impl Screen for Chooser {
}

fn handle_global_message(&mut self, message: super::ManagerMessage) -> super::EventResponse {
match message {
ManagerMessage::AddElementToChooser(a) => {
self.add_element(a);
}
_ => (),
if let ManagerMessage::AddElementToChooser(a) = message {
self.add_element(a);
}
EventResponse::None
}
Expand Down
2 changes: 1 addition & 1 deletion src/term/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl Screen for Search {
self.set_elements(vec![]);
}

return EventResponse::None;
EventResponse::None
}

fn render(&mut self, frame: &mut Frame<tui::backend::CrosstermBackend<std::io::Stdout>>) {
Expand Down
1 change: 0 additions & 1 deletion ytpapi/dd.txt

This file was deleted.

Loading

0 comments on commit 354693d

Please sign in to comment.