aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/client.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 16:50:32 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 16:50:32 -0700
commit3ed7db573438d3620d295813a81237acb91155cb (patch)
tree714abba5a1a84449cf9beb152b5ee56996627f37 /rust/fatcat-api/src/client.rs
parenta96ca6e8df949f32e7647a285748712a9d842611 (diff)
downloadfatcat-3ed7db573438d3620d295813a81237acb91155cb.tar.gz
fatcat-3ed7db573438d3620d295813a81237acb91155cb.zip
refactor changelog entry spec structure
Diffstat (limited to 'rust/fatcat-api/src/client.rs')
-rw-r--r--rust/fatcat-api/src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/fatcat-api/src/client.rs b/rust/fatcat-api/src/client.rs
index b94d6f42..8c7e4ef3 100644
--- a/rust/fatcat-api/src/client.rs
+++ b/rust/fatcat-api/src/client.rs
@@ -1248,7 +1248,7 @@ impl Api for Client {
200 => {
let mut buf = String::new();
response.read_to_string(&mut buf).map_err(|e| ApiError(format!("Response was not valid UTF8: {}", e)))?;
- let body = serde_json::from_str::<models::Changelogentries>(&buf)?;
+ let body = serde_json::from_str::<Vec<models::ChangelogEntry>>(&buf)?;
Ok(GetEditorChangelogResponse::FoundMergedChanges(body))
}