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;