mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
Formatting
This commit is contained in:
@@ -15,7 +15,7 @@ pub struct Configuration {
|
||||
pub last_ip: Option<String>,
|
||||
pub last_port: Option<String>,
|
||||
pub language: Option<String>,
|
||||
pub customBackground: Option<String>,
|
||||
pub custom_background: Option<String>,
|
||||
pub cert_generated: Option<bool>,
|
||||
pub theme: Option<String>,
|
||||
pub https_enabled: Option<bool>,
|
||||
|
||||
@@ -341,7 +341,7 @@ fn restart_grasscutter(window: tauri::Window) -> bool {
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tauri::command]
|
||||
fn restart_grasscutter(window: tauri::Window) {
|
||||
fn restart_grasscutter(_window: tauri::Window) {
|
||||
// Placeholder text for imports
|
||||
let s = System::new();
|
||||
if let Some(process) = s.process(Pid::from(1337)) {
|
||||
@@ -412,7 +412,7 @@ fn enable_grasscutter_watcher(window: tauri::Window, process: String) {
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tauri::command]
|
||||
fn enable_grasscutter_watcher(window: tauri::Window, process: String) {
|
||||
fn enable_grasscutter_watcher(_window: tauri::Window, _process: String) {
|
||||
let gc_pid = Pid::from(696969);
|
||||
}
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ pub fn service_status(service: String) -> bool {
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tauri::command]
|
||||
pub fn service_status(service: String) {}
|
||||
pub fn service_status(_service: String) {}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[tauri::command]
|
||||
@@ -270,7 +270,7 @@ pub fn start_service(service: String) -> bool {
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tauri::command]
|
||||
pub fn start_service(service: String) {
|
||||
pub fn start_service(_service: String) {
|
||||
let started = OsStr::new("Started service!");
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@ pub fn stop_service(service: String) -> bool {
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tauri::command]
|
||||
pub fn stop_service(service: String) {}
|
||||
pub fn stop_service(_service: String) {}
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tauri::command]
|
||||
|
||||
Reference in New Issue
Block a user