Remove trailing whitespace
This commit is contained in:
parent
54b1dfbe4b
commit
056e1c388b
|
@ -102,7 +102,7 @@ fn select_albums(ui: &mut Cursive) {
|
||||||
let album_name = album_name(&album_path);
|
let album_name = album_name(&album_path);
|
||||||
let album_path = album_path.clone();
|
let album_path = album_path.clone();
|
||||||
let selected = registry.selected_albums.contains(&album_path);
|
let selected = registry.selected_albums.contains(&album_path);
|
||||||
|
|
||||||
let mut checkbox = Checkbox::new().on_change(move |_, checked| {
|
let mut checkbox = Checkbox::new().on_change(move |_, checked| {
|
||||||
let mut registry = REGISTRY.lock().unwrap();
|
let mut registry = REGISTRY.lock().unwrap();
|
||||||
registry.select_album(&album_path, checked);
|
registry.select_album(&album_path, checked);
|
||||||
|
|
|
@ -98,7 +98,7 @@ impl Registry {
|
||||||
result.sort();
|
result.sort();
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn select_album(&mut self, album_path: &PathBuf, result: bool) {
|
pub fn select_album(&mut self, album_path: &PathBuf, result: bool) {
|
||||||
if result {
|
if result {
|
||||||
self.selected_albums.insert(album_path.clone());
|
self.selected_albums.insert(album_path.clone());
|
||||||
|
|
Reference in New Issue