mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-10 16:05:37 +00:00
chore: clippy fix some code on Windows (#2106)
This commit is contained in:
@@ -491,10 +491,10 @@ mod win_service_manager {
|
||||
{
|
||||
Ok(s) => s,
|
||||
Err(e) => {
|
||||
if let windows_service::Error::Winapi(ref win_err) = e {
|
||||
if win_err.raw_os_error() == Some(0x424) {
|
||||
return Ok(ServiceStatus::NotInstalled);
|
||||
}
|
||||
if let windows_service::Error::Winapi(ref win_err) = e
|
||||
&& win_err.raw_os_error() == Some(0x424)
|
||||
{
|
||||
return Ok(ServiceStatus::NotInstalled);
|
||||
}
|
||||
return Err(io::Error::other(e));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user