diff --git a/src-tauri/src/cmd.rs b/src-tauri/src/cmd.rs index 7629a44..7994fb4 100644 --- a/src-tauri/src/cmd.rs +++ b/src-tauri/src/cmd.rs @@ -1,5 +1,5 @@ use crate::clash; -use crate::profiles; +use crate::import; use tauri::api::process::kill_children; #[tauri::command] @@ -10,7 +10,7 @@ pub fn cmd_restart_sidebar() { #[tauri::command] pub async fn cmd_import_profile(url: String) -> Result { - match profiles::import_profile(&url).await { + match import::import_profile(&url).await { Ok(_) => Ok(String::from("success")), Err(_) => Err(String::from("error")), } diff --git a/src-tauri/src/profiles.rs b/src-tauri/src/import.rs similarity index 100% rename from src-tauri/src/profiles.rs rename to src-tauri/src/import.rs diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 6cb2839..eb8a69d 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -8,8 +8,8 @@ extern crate tauri; mod clash; mod cmd; mod config; +mod import; mod init; -mod profiles; mod sysopt; use tauri::{