Przeglądaj źródła

chore: rename file

GyDi 3 lat temu
rodzic
commit
ee26bb3b5d
3 zmienionych plików z 3 dodań i 3 usunięć
  1. 2 2
      src-tauri/src/cmd.rs
  2. 0 0
      src-tauri/src/import.rs
  3. 1 1
      src-tauri/src/main.rs

+ 2 - 2
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<String, String> {
-  match profiles::import_profile(&url).await {
+  match import::import_profile(&url).await {
     Ok(_) => Ok(String::from("success")),
     Err(_) => Err(String::from("error")),
   }

+ 0 - 0
src-tauri/src/profiles.rs → src-tauri/src/import.rs


+ 1 - 1
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::{