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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All changes in this project will be noted in this file.

## 0.8.9

### Additions

- Added enhanced multi-row decode support
- Added deref to slice for rows

### Fixes

- Fixed error propagation in `FromResponse` impls

## 0.8.8

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "Apache-2.0"
name = "skytable"
readme = "README.md"
repository = "https://github.com/skytable/client-rust"
version = "0.8.8"
version = "0.8.9"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
Expand Down
3 changes: 3 additions & 0 deletions src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ impl FromResponse for Row {
fn from_response(resp: Response) -> ClientResult<Self> {
match resp {
Response::Row(r) => Ok(r),
Response::Error(e) => Err(Error::ServerError(e)),
_ => Err(Error::ParseError(ParseError::ResponseMismatch)),
}
}
Expand All @@ -338,6 +339,7 @@ impl FromResponse for Vec<Row> {
fn from_response(resp: Response) -> ClientResult<Self> {
match resp {
Response::Rows(rows) => Ok(rows),
Response::Error(e) => Err(Error::ServerError(e)),
_ => Err(Error::ParseError(ParseError::ResponseMismatch)),
}
}
Expand Down Expand Up @@ -376,6 +378,7 @@ impl<T: FromRow> FromResponse for Rows<T> {
}
Ok(Self(ret))
}
Response::Error(e) => Err(Error::ServerError(e)),
_ => Err(Error::ParseError(ParseError::ResponseMismatch)),
}
}
Expand Down