diff options
author | 2024-09-18 02:26:01 +0200 | |
---|---|---|
committer | 2024-09-18 02:26:01 +0200 | |
commit | ce5834979cd72b52ad473924a0c322d0cdcca11c (patch) | |
tree | f05991e519c650f64b71ebdd0bdb7e0f4ef24e7e /examples/changelog/src/changelog.rs | |
parent | e36e042093287e6b21004e24b609c6d1de7fc64a (diff) | |
download | iced-ce5834979cd72b52ad473924a0c322d0cdcca11c.tar.gz iced-ce5834979cd72b52ad473924a0c322d0cdcca11c.tar.bz2 iced-ce5834979cd72b52ad473924a0c322d0cdcca11c.zip |
Fix deserialization of `PullRequest` with empty body in `changelog` tool
Diffstat (limited to 'examples/changelog/src/changelog.rs')
-rw-r--r-- | examples/changelog/src/changelog.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/changelog/src/changelog.rs b/examples/changelog/src/changelog.rs index 4aeb9574..275afec7 100644 --- a/examples/changelog/src/changelog.rs +++ b/examples/changelog/src/changelog.rs @@ -306,7 +306,7 @@ impl Contribution { pub struct PullRequest { pub id: u64, pub title: String, - pub description: String, + pub description: Option<String>, pub labels: Vec<String>, pub author: String, } @@ -334,7 +334,7 @@ impl PullRequest { #[derive(Deserialize)] struct Schema { title: String, - body: String, + body: Option<String>, user: User, labels: Vec<Label>, } |