0.1.14 upd
This commit is contained in:
parent
e3aaf2b319
commit
95b7c0cc54
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "itunesdb"
|
||||
version = "0.1.13"
|
||||
version = "0.1.14"
|
||||
edition = "2021"
|
||||
authors = ["alterwain"]
|
||||
|
||||
|
@ -156,11 +156,14 @@ impl XTrackItem {
|
||||
}
|
||||
|
||||
fn get_arg(&self, id: u32) -> String {
|
||||
self.args.iter().find(|t| t.arg_type == id).map_or(String::new(), |t| t.val.clone())
|
||||
for t in self.args.iter() {
|
||||
println!("{} -> {}", t.arg_type, t.val);
|
||||
}
|
||||
self.args.iter().find(|t| t.arg_type == id).map_or("none".to_string(), |t| t.val.clone())
|
||||
}
|
||||
|
||||
fn update_arg(&mut self, id: u32, val: String) {
|
||||
self.args.retain_mut(|t| t.arg_type == id);
|
||||
self.args.retain(|t| t.arg_type == id);
|
||||
self.args.push(XArgument { arg_type: id, val});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user