From e00f826eb885ebb923ec6b2941ce2e533324819f Mon Sep 17 00:00:00 2001
From: GyDi <zzzgydi@gmail.com>
Date: Tue, 22 Nov 2022 23:02:18 +0800
Subject: [PATCH] fix: lint

---
 src-tauri/src/cmds.rs      | 1 -
 src-tauri/src/core/core.rs | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/src-tauri/src/cmds.rs b/src-tauri/src/cmds.rs
index e245796..9e9749f 100644
--- a/src-tauri/src/cmds.rs
+++ b/src-tauri/src/cmds.rs
@@ -24,7 +24,6 @@ pub async fn enhance_profiles() -> CmdResult {
     Ok(())
 }
 
-#[deprecated]
 #[tauri::command]
 pub async fn import_profile(url: String, option: Option<PrfOption>) -> CmdResult {
     let item = wrap_err!(PrfItem::from_url(&url, None, None, option).await)?;
diff --git a/src-tauri/src/core/core.rs b/src-tauri/src/core/core.rs
index de5cbca..87a51d8 100644
--- a/src-tauri/src/core/core.rs
+++ b/src-tauri/src/core/core.rs
@@ -79,6 +79,7 @@ impl CoreManager {
     pub async fn run_core(&self) -> Result<()> {
         let config_path = Config::generate_file(ConfigType::Run)?;
 
+        #[allow(unused_mut)]
         let mut should_kill = match self.sidecar.lock().take() {
             Some(child) => {
                 log::debug!(target: "app", "stop the core by sidecar");
-- 
GitLab