mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-04 23:23:45 +08:00
fix: unused Result
This commit is contained in:
parent
cd4bfdd743
commit
ad1f2bea3b
@ -38,7 +38,7 @@ pub fn restart_app() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn after_change_clash_mode() {
|
fn after_change_clash_mode() {
|
||||||
tauri::async_runtime::block_on(tauri::async_runtime::spawn_blocking(|| {
|
let _ = tauri::async_runtime::block_on(tauri::async_runtime::spawn_blocking(|| {
|
||||||
tauri::async_runtime::block_on(async {
|
tauri::async_runtime::block_on(async {
|
||||||
let connections = MihomoManager::global().get_connections().await.unwrap();
|
let connections = MihomoManager::global().get_connections().await.unwrap();
|
||||||
let connections = connections["connections"].as_array().unwrap();
|
let connections = connections["connections"].as_array().unwrap();
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
use crate::cmd::system;
|
use crate::{
|
||||||
use crate::core::{handle, CoreManager};
|
cmd::system,
|
||||||
|
core::{handle, CoreManager},
|
||||||
|
};
|
||||||
use std::fmt::{self, Debug, Formatter};
|
use std::fmt::{self, Debug, Formatter};
|
||||||
use sysinfo::System;
|
use sysinfo::System;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user