chore: fix clippy lints

This commit is contained in:
ThetaDev 2024-01-18 13:23:56 +01:00
parent 71f7a0643a
commit e9fb16353a
4 changed files with 11 additions and 8 deletions

View file

@ -327,7 +327,7 @@ impl MapResponse<MusicAlbum> for response::MusicPlaylist {
let year_txt = subtitle_split
.swap_remove(2)
.0
.get(0)
.first()
.map(|c| c.as_str().to_owned());
(year_txt, subtitle_split.try_swap_remove(1))
}