From 1b724078408e281191d409a2529ab369360199b7 Mon Sep 17 00:00:00 2001 From: David Rauschenbach Date: Mon, 6 Oct 2025 15:17:01 -0700 Subject: [PATCH] =?UTF-8?q?Upgrade=20Rust=201.88.0=20=E2=86=92=201.90.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/rust.yml | 2 +- CHANGELOG.md | 4 ++++ rust/src/client.rs | 18 +++++++++--------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index aa44c32..c193b91 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,7 @@ on: env: CARGO_TERM_COLOR: always - RUST_VERSION: 1.88.0 + RUST_VERSION: 1.90.0 jobs: static_analysis: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cb4a01..a0f0577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Project Arete SDK Changelog +## [Unreleased] +### Changed +- [#96](https://github.com/project-arete/sdk/issues/96) (Rust) Upgrade Rust 1.88.0 → 1.90.0 + ## [0.1.6] - 2025-09-26 ### Added - [#90](https://github.com/project-arete/sdk/issues/90) Consumer and Provider classes/structs both require get, put, and watch capabilities diff --git a/rust/src/client.rs b/rust/src/client.rs index ad3c4ef..9b26621 100644 --- a/rust/src/client.rs +++ b/rust/src/client.rs @@ -134,15 +134,15 @@ impl Client { let mut requests = requests_2.lock().unwrap(); if response.is_string() && response.as_str().unwrap_or_default().is_empty() { requests.insert(transaction, Some(Response { error: None })); - } else if let Value::Object(response) = response { - if let Some(error_msg) = response.get("error") { - requests.insert( - transaction, - Some(Response { - error: Some(error_msg.to_string()), - }), - ); - } + } else if let Value::Object(response) = response + && let Some(error_msg) = response.get("error") + { + requests.insert( + transaction, + Some(Response { + error: Some(error_msg.to_string()), + }), + ); } } continue;