File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11mod sing_box_helper;
22
33use std:: fs;
4+ use std:: process:: Stdio ;
45use std:: sync:: { Arc , Mutex } ;
56use tauri:: {
67 menu:: { Menu , MenuItem } ,
@@ -651,6 +652,7 @@ async fn start_openvpn(
651652 use std:: thread;
652653
653654 let app_data_dir = app. path ( ) . app_data_dir ( ) . expect ( "Failed to get app dir" ) ;
655+ #[ allow( unused_variables) ]
654656 let resource_dir = app. path ( ) . resource_dir ( ) . unwrap_or_else ( |_| std:: env:: current_dir ( ) . unwrap ( ) ) ;
655657 let logs_path = app_data_dir. join ( "candy.logs" ) ;
656658
@@ -679,6 +681,7 @@ async fn start_openvpn(
679681 ) ) ;
680682
681683 // Resolve openvpn binary: try bundled first, then system
684+ #[ allow( unused_variables) ]
682685 let resolve_tool = |base : & std:: path:: Path , rel_path : & str | -> std:: path:: PathBuf {
683686 let p1 = base. join ( rel_path) ;
684687 if p1. exists ( ) { return p1; }
You can’t perform that action at this time.
0 commit comments