mirror of
https://github.com/EasyTier/EasyTier.git
synced 2024-11-16 11:42:27 +08:00
Remove the use of std::ffi::OsString at the top.
This commit is contained in:
parent
a6f215dcdf
commit
ff5002b2a4
|
@ -2,7 +2,8 @@
|
||||||
extern crate rust_i18n;
|
extern crate rust_i18n;
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
ffi::OsString, net::{Ipv4Addr, SocketAddr}, path::PathBuf
|
net::{Ipv4Addr, SocketAddr},
|
||||||
|
path::PathBuf,
|
||||||
};
|
};
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
|
@ -686,7 +687,7 @@ fn win_service_event_loop(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
fn win_service_main(_: Vec<OsString>) {
|
fn win_service_main(_: Vec<std::ffi::OsString>) {
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use windows_service::service_control_handler::*;
|
use windows_service::service_control_handler::*;
|
||||||
use windows_service::service::*;
|
use windows_service::service::*;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user