cargo update + format + clippy

This commit is contained in:
Henrik Friedrichsen
2020-11-21 15:42:17 +01:00
parent d728cd2bb4
commit 09febf7187
5 changed files with 260 additions and 168 deletions

View File

@@ -67,10 +67,8 @@ impl ContextMenu {
let modal = Modal::new(already_added_dialog);
s.add_layer(modal);
return;
} else {
playlist.append_tracks(&[track.clone()], spotify, library);
playlist.append_tracks(&[track], spotify, library);
s.pop_layer();
}
});

View File

@@ -579,7 +579,8 @@ impl<I: ListItem + Clone> ViewExt for ListView<I> {
let spotify = self.queue.get_spotify();
let re =
Regex::new(r"https?://open\.spotify\.com/(user/[^/]+/)?(\S+)/(\S+)(\?si=\S+)?").unwrap();
Regex::new(r"https?://open\.spotify\.com/(user/[^/]+/)?(\S+)/(\S+)(\?si=\S+)?")
.unwrap();
let captures = re.captures(&url);
if let Some(captures) = captures {