mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-12 01:44:30 +00:00
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:
@@ -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();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user