feat(theseus): change parameter type of normalize_skin_texture Tauri command

This commit is contained in:
Alejandro González committed 2025-06-14 17:50:14 +02:00
1 parent 774950de90
commit 92f281a6df
3 files changed
+68 -61

No files matched your search

+5 -3
View File
@@ -1,6 +1,8 @@
use crate::api::Result;
use theseus::minecraft_skins::{self, Bytes, Cape, MinecraftSkinVariant, Skin};
use theseus::minecraft_skins::{
self, Bytes, Cape, MinecraftSkinVariant, Skin, UrlOrBlob,
};
pub fn init<R: tauri::Runtime>() -> tauri::plugin::TauriPlugin<R> {
tauri::plugin::Builder::new("minecraft-skins")
@@ -86,6 +88,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(texture: UrlOrBlob) -> Result<Bytes> {
Ok(minecraft_skins::normalize_skin_texture(&texture).await?)
}