cli: update proc macro and clippy (#210414)

This commit is contained in:
Connor Peet
2024-04-15 11:27:34 -07:00
committed by GitHub
parent 98785f537e
commit 21e0716833
2 changed files with 3 additions and 3 deletions

4
cli/Cargo.lock generated
View File

@@ -1723,9 +1723,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
version = "1.0.59"
version = "1.0.80"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b"
checksum = "a56dea16b0a29e94408b9aa5e2940a4eedbd128a1ba20e8f7ae60fd3d465af0e"
dependencies = [
"unicode-ident",
]

View File

@@ -86,7 +86,7 @@ impl ServiceManager for LaunchdService {
match capture_command_and_check_status("launchctl", &["stop", &get_service_label()]).await {
Ok(_) => {}
// status 3 == "no such process"
Err(CodeError::CommandFailed { code, .. }) if code == 3 => {}
Err(CodeError::CommandFailed { code: 3, .. }) => {}
Err(e) => return Err(wrap(e, "error stopping service").into()),
};