0.1.12 upd

This commit is contained in:
Michael Wain 2025-02-14 22:48:38 +03:00
parent 4204fdcda8
commit cd2fa25ae7
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "itunesdb" name = "itunesdb"
version = "0.1.11" version = "0.1.12"
edition = "2021" edition = "2021"
authors = ["alterwain"] authors = ["alterwain"]

View File

@ -99,7 +99,7 @@ impl XPlaylist {
return true; return true;
} }
} }
return false; false
}); });
self.args.push(XPlArgument::String(XArgument { arg_type: id, val })); self.args.push(XPlArgument::String(XArgument { arg_type: id, val }));
} }
@ -202,9 +202,9 @@ impl XDatabase {
1 1
} }
pub fn get_track(&mut self, id: u32) -> Option<&XTrackItem> { pub fn get_track(&mut self, id: u32) -> Option<XTrackItem> {
if let XSomeList::TrackList(tracks) = &mut self.find_dataset(1).child { if let XSomeList::TrackList(tracks) = &mut self.find_dataset(1).child {
return tracks.iter().find(|t| t.data.unique_id == id) return tracks.iter().find(|t| t.data.unique_id == id).cloned()
} }
None None
} }