Skip to content

Commit 70b5481

Browse files
Merge pull request #861 from integer32llc/serialize-fix
Rename krate in json to crate
2 parents 4fa2cc8 + 81db440 commit 70b5481

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/version.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub struct NewVersion {
5151
#[derive(Serialize, Deserialize, Debug)]
5252
pub struct EncodableVersion {
5353
pub id: i32,
54+
#[serde(rename = "crate")]
5455
pub krate: String,
5556
pub num: String,
5657
pub dl_path: String,

0 commit comments

Comments
 (0)