cargo update + format + clippy
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user