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(())