runtime-rs: resolve collapsible_match warnings for Rust 1.95

Rust 1.95's clippy introduces new `collapsible_match` lints for `if`
blocks nested inside match arms that can be expressed as match guards.

Generated-by: IBM Bob
Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2026-06-30 05:45:48 -07:00
parent 6bb713f614
commit b8a0fbca46

View File

@@ -43,10 +43,8 @@ pub fn convert_agent_error(err: anyhow::Error) -> anyhow::Error {
return Error::AgentConnectionClosed.into();
}
// Handle errors returned by the agent (RPC status errors)
ttrpc::error::Error::RpcStatus(status) => {
if status.code() == ttrpc::Code::NOT_FOUND {
return Error::ProcessAlreadyTerminated.into();
}
ttrpc::error::Error::RpcStatus(status) if status.code() == ttrpc::Code::NOT_FOUND => {
return Error::ProcessAlreadyTerminated.into();
}
_ => {}
}