chore: Rust build fixes

This commit is contained in:
Alejandro González committed 2025-06-14 17:50:14 +02:00
1 parent 33269d3540
commit 5fa9a0e812
2 files changed
+3 -2

No files matched your search

+2 -2
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?)
}
@@ -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,