musikr: cleanup

This commit is contained in:
Alexander Capehart 2025-02-19 14:16:47 -07:00
parent 2d7cafbdbf
commit 774b2a90bb
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 3 additions and 3 deletions

View file

@ -23,4 +23,4 @@ link-cplusplus = {version = "1.0.9", features = ["nothing"]}
[profile.release] [profile.release]
lto = true lto = true
codegen-units = 1 codegen-units = 1
strip = true strip = true

View file

@ -144,7 +144,7 @@ fn main() -> Result<(), Box<dyn Error>> {
println!("cargo:rustc-link-lib=static=tag"); println!("cargo:rustc-link-lib=static=tag");
println!("cargo:rerun-if-changed=taglib/"); println!("cargo:rerun-if-changed=taglib/");
configure_cxx_bridge(&target)?; configure_cxx_bridge(&target)?;
if target.contains("android") { if target.contains("android") {
// Magic linker flags that statically link the C++ runtime // Magic linker flags that statically link the C++ runtime
// and exception handling to the library. // and exception handling to the library.

View file

@ -95,7 +95,7 @@ impl<'local, 'file_ref> JMetadataBuilder<'local, 'file_ref> {
pub fn set_xiph(&mut self, tag: &mut xiph::XiphComment<'file_ref>) { pub fn set_xiph(&mut self, tag: &mut xiph::XiphComment<'file_ref>) {
for (key, values) in tag.field_list_map().to_hashmap() { for (key, values) in tag.field_list_map().to_hashmap() {
let values: Vec<String> = values.to_vec().into_iter().map(|s| s.to_string()).collect(); let values: Vec<String> = values.to_vec().into_iter().map(|s| s.to_string()).collect();
self.xiph.add_id_list(key.to_uppercase(), values); self.xiph.add_custom_list(key.to_uppercase(), values);
} }
self.set_flac_pictures(&tag.picture_list()); self.set_flac_pictures(&tag.picture_list());
} }