chore: Rust build fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user