From 76bd1418a2ba6681f9249f870e0443f97a6a1b06 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Tue, 7 Oct 2025 16:23:40 +0200 Subject: [PATCH] api_client: fix clippy Signed-off-by: Philipp Schuster On-behalf-of: SAP philipp.schuster@sap.com --- api_client/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api_client/src/lib.rs b/api_client/src/lib.rs index 0ee7fa1d0..8ced48f7c 100644 --- a/api_client/src/lib.rs +++ b/api_client/src/lib.rs @@ -188,8 +188,8 @@ pub fn simple_api_full_command_with_fds( request_fds, )?; - if response.is_some() { - println!("{}", response.unwrap()); + if let Some(response) = response { + println!("{response}"); } Ok(())