Skip to content

Commit 52e0244

Browse files
committed
skip serializing ReviewComment::start_line if it is null
1 parent b569b68 commit 52e0244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp-linter/src/rest_api/github/serde_structs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub struct FullReview {
1616
pub struct ReviewDiffComment {
1717
pub body: String,
1818
pub line: i64,
19+
#[serde(skip_serializing_if = "Option::is_none")]
1920
pub start_line: Option<i64>,
2021
pub path: String,
2122
}

0 commit comments

Comments
 (0)