diff --git a/apps/app/src/api/minecraft_skins.rs b/apps/app/src/api/minecraft_skins.rs index bf0e68ca5..9daf52e84 100644 --- a/apps/app/src/api/minecraft_skins.rs +++ b/apps/app/src/api/minecraft_skins.rs @@ -86,6 +86,6 @@ pub async fn unequip_skin() -> Result<()> { /// /// See also: [minecraft_skins::normalize_skin_texture] #[tauri::command] -pub async fn normalize_skin_texture(skin: &Skin) -> Result { - Ok(minecraft_skins::normalize_skin_texture(skin).await?) +pub async fn normalize_skin_texture(skin: Skin) -> Result { + Ok(minecraft_skins::normalize_skin_texture(&skin).await?) } diff --git a/packages/app-lib/src/api/minecraft_skins/png_util.rs b/packages/app-lib/src/api/minecraft_skins/png_util.rs index b4ffbac41..3129e64f2 100644 --- a/packages/app-lib/src/api/minecraft_skins/png_util.rs +++ b/packages/app-lib/src/api/minecraft_skins/png_util.rs @@ -226,6 +226,7 @@ fn convert_legacy_skin_texture( /// Equivalent to Mojang's Blaze3D `NativeImage#copyRect(int, int, int, int, int, int, /// boolean, boolean)` method, but with the last two parameters fixed to `true` and `false`, /// respectively. +#[allow(clippy::too_many_arguments)] fn copy_rect_mirror_horizontally( texture_buf: &mut [PixelType], texture_info: &png::Info,