Remove trailing whitespace

master
Paul van Tilburg 4 years ago
parent 54b1dfbe4b
commit 056e1c388b
  1. 2
      src/main.rs
  2. 2
      src/registry.rs

@ -102,7 +102,7 @@ fn select_albums(ui: &mut Cursive) {
let album_name = album_name(&album_path);
let album_path = album_path.clone();
let selected = registry.selected_albums.contains(&album_path);
let mut checkbox = Checkbox::new().on_change(move |_, checked| {
let mut registry = REGISTRY.lock().unwrap();
registry.select_album(&album_path, checked);

@ -98,7 +98,7 @@ impl Registry {
result.sort();
result
}
pub fn select_album(&mut self, album_path: &PathBuf, result: bool) {
if result {
self.selected_albums.insert(album_path.clone());