chore: cargo fmt
This commit is contained in:
@@ -22,4 +22,4 @@ pub fn start_auth_flow() -> Result<(), String> {
|
||||
});
|
||||
})
|
||||
.map_err(|e| e.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use crate::{
|
||||
lock_w,
|
||||
services::client_config_manager::{
|
||||
load_app_config, open_config_manager_window, save_app_config, AppConfig,
|
||||
},
|
||||
state::FDOLL,
|
||||
lock_w,
|
||||
};
|
||||
|
||||
#[tauri::command]
|
||||
@@ -28,4 +28,4 @@ pub fn save_client_config(config: AppConfig) -> Result<(), String> {
|
||||
#[tauri::command]
|
||||
pub async fn open_client_config_manager() -> Result<(), String> {
|
||||
open_config_manager_window().map_err(|e| e.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use crate::{
|
||||
lock_r,
|
||||
remotes::{
|
||||
dolls::{CreateDollDto, DollDto, DollsRemote, UpdateDollDto},
|
||||
user::UserRemote,
|
||||
},
|
||||
state::{init_app_data_scoped, AppDataRefreshScope, FDOLL},
|
||||
lock_r,
|
||||
};
|
||||
use tauri::async_runtime;
|
||||
|
||||
@@ -132,4 +132,4 @@ pub async fn remove_active_doll() -> Result<(), String> {
|
||||
});
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
use crate::{
|
||||
models::interaction::SendInteractionDto,
|
||||
services::interaction::send_interaction,
|
||||
};
|
||||
use crate::{models::interaction::SendInteractionDto, services::interaction::send_interaction};
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn send_interaction_cmd(dto: SendInteractionDto) -> Result<(), String> {
|
||||
send_interaction(dto).await
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,4 @@ pub fn recolor_gif_base64(
|
||||
apply_texture,
|
||||
)
|
||||
.map_err(|e: Box<dyn std::error::Error>| e.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user