fix: lint
This commit is contained in:
parent
24f4e8ab99
commit
e00f826eb8
@ -24,7 +24,6 @@ pub async fn enhance_profiles() -> CmdResult {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated]
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn import_profile(url: String, option: Option<PrfOption>) -> CmdResult {
|
pub async fn import_profile(url: String, option: Option<PrfOption>) -> CmdResult {
|
||||||
let item = wrap_err!(PrfItem::from_url(&url, None, None, option).await)?;
|
let item = wrap_err!(PrfItem::from_url(&url, None, None, option).await)?;
|
||||||
|
@ -79,6 +79,7 @@ impl CoreManager {
|
|||||||
pub async fn run_core(&self) -> Result<()> {
|
pub async fn run_core(&self) -> Result<()> {
|
||||||
let config_path = Config::generate_file(ConfigType::Run)?;
|
let config_path = Config::generate_file(ConfigType::Run)?;
|
||||||
|
|
||||||
|
#[allow(unused_mut)]
|
||||||
let mut should_kill = match self.sidecar.lock().take() {
|
let mut should_kill = match self.sidecar.lock().take() {
|
||||||
Some(child) => {
|
Some(child) => {
|
||||||
log::debug!(target: "app", "stop the core by sidecar");
|
log::debug!(target: "app", "stop the core by sidecar");
|
||||||
|
Loading…
Reference in New Issue
Block a user