From 5fa9a0e812ab4726a577b1ad31d8d05dfb629096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Wed, 28 May 2025 20:27:36 +0200 Subject: [PATCH] chore: Rust build fixes --- apps/app/src/api/minecraft_skins.rs | 4 ++-- packages/app-lib/src/api/minecraft_skins/png_util.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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,