Forráskód Böngészése

Pull request review bodies may be null

We should interpret these as empty bodies rather than erroring out
Mark Rousskov 5 éve
szülő
commit
1685ef5f4e
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      src/github.rs

+ 1 - 0
src/github.rs

@@ -138,6 +138,7 @@ pub struct Issue {
 
 #[derive(Debug, serde::Deserialize)]
 pub struct Comment {
+    #[serde(default)]
     pub body: String,
     pub html_url: String,
     pub user: User,