From e67e459cfca17c14a110555780643485642da343 Mon Sep 17 00:00:00 2001 From: ergrelet Date: Sun, 7 Jul 2024 02:14:36 +0200 Subject: [PATCH] Fix TagType::set_icon so that it actually sets a tag type's icon --- rust/src/tags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/tags.rs b/rust/src/tags.rs index 912ee81b1..29266ed0b 100644 --- a/rust/src/tags.rs +++ b/rust/src/tags.rs @@ -132,7 +132,7 @@ impl TagType { pub fn set_icon(&self, icon: S) { let icon = icon.into_bytes_with_nul(); unsafe { - BNTagTypeSetName(self.handle, icon.as_ref().as_ptr() as *mut _); + BNTagTypeSetIcon(self.handle, icon.as_ref().as_ptr() as *mut _); } }