chore: clippy fix some code on Windows (#2106)

This commit is contained in:
Luna Yao
2026-04-12 16:13:58 +02:00
committed by GitHub
parent 83010861ba
commit c6cb1a77d0
5 changed files with 28 additions and 37 deletions
+4 -4
View File
@@ -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));
}