From ee26bb3b5d9058ea606605fbf95cdda7b3c33028 Mon Sep 17 00:00:00 2001 From: GyDi Date: Tue, 14 Dec 2021 15:56:29 +0800 Subject: [PATCH] chore: rename file --- src-tauri/src/cmd.rs | 4 ++-- src-tauri/src/{profiles.rs => import.rs} | 0 src-tauri/src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src-tauri/src/{profiles.rs => import.rs} (100%) 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::{