cleanups + make search results scrollable

This commit is contained in:
Henrik Friedrichsen
2018-12-23 20:23:10 +01:00
parent 278bb7844f
commit f1ec67db0c
4 changed files with 22 additions and 23 deletions

View File

@@ -152,10 +152,6 @@ impl Spotify {
debug!("worker thread finished.");
}
pub fn run(&mut self) {
println!("Spotify::run() finished");
}
pub fn search(&self, query: &str, limit: u32, offset: u32) -> Result<SearchTracks, Error> {
self.api.search_track(query, limit, offset, None)
}
@@ -172,12 +168,12 @@ impl Spotify {
self.channel.unbounded_send(WorkerCommand::Play).unwrap();
}
pub fn pause(&mut self) {
pub fn pause(&self) {
info!("pause()");
self.channel.unbounded_send(WorkerCommand::Pause).unwrap();
}
pub fn stop(&mut self) {
pub fn stop(&self) {
info!("stop()");
self.channel.unbounded_send(WorkerCommand::Stop).unwrap();
}