From b8a0fbca46493c814f41ea54882e7941912932f7 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 30 Jun 2026 05:45:48 -0700 Subject: [PATCH] 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 --- .../runtimes/virt_container/src/container_manager/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/mod.rs b/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/mod.rs index 06ebda14b5..96e24b1ced 100644 --- a/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/mod.rs +++ b/src/runtime-rs/crates/runtimes/virt_container/src/container_manager/mod.rs @@ -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(); } _ => {} }