chore: Rust build fixes

This commit is contained in:
Alejandro González
2025-05-28 20:27:36 +02:00
parent 33269d3540
commit 5fa9a0e812
2 changed files with 3 additions and 2 deletions

View File

@@ -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<Bytes> {
Ok(minecraft_skins::normalize_skin_texture(skin).await?)
pub async fn normalize_skin_texture(skin: Skin) -> Result<Bytes> {
Ok(minecraft_skins::normalize_skin_texture(&skin).await?)
}

View File

@@ -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<PixelType: NoUninit + AnyBitPattern>(
texture_buf: &mut [PixelType],
texture_info: &png::Info,