mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Apply some clippy suggestions
This commit is contained in:
parent
e26444c982
commit
0926d912eb
4 changed files with 6 additions and 8 deletions
|
|
@ -185,7 +185,7 @@ impl MusicusHomePage {
|
|||
items.push(PlaylistItem::new(
|
||||
true,
|
||||
&title,
|
||||
performances.as_ref().map(|x| x.as_str()),
|
||||
performances.as_deref(),
|
||||
None,
|
||||
&tracks[0].path,
|
||||
));
|
||||
|
|
@ -212,7 +212,7 @@ impl MusicusHomePage {
|
|||
items.push(PlaylistItem::new(
|
||||
true,
|
||||
&title,
|
||||
performances.as_ref().map(|x| x.as_str()),
|
||||
performances.as_deref(),
|
||||
Some(&track_title(&first_track, 1)),
|
||||
&first_track.path,
|
||||
));
|
||||
|
|
@ -221,7 +221,7 @@ impl MusicusHomePage {
|
|||
items.push(PlaylistItem::new(
|
||||
false,
|
||||
&title,
|
||||
performances.as_ref().map(|x| x.as_str()),
|
||||
performances.as_deref(),
|
||||
// track number = track index + 1 (first track) + 1 (zero based)
|
||||
Some(&track_title(&track, index + 2)),
|
||||
&track.path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue