Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.88.0
RUST_VERSION: 1.90.0

jobs:
static_analysis:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 9 additions & 9 deletions rust/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down