Explorar o código

Pull request review bodies may be null

We should interpret these as empty bodies rather than erroring out
Mark Rousskov %!s(int64=5) %!d(string=hai) anos
pai
achega
1685ef5f4e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,