Skip to content

Commit

Permalink
fix: me vs borrow checker
Browse files Browse the repository at this point in the history
0 - 1
  • Loading branch information
MrExplode committed Nov 2, 2023
1 parent dd45007 commit c531105
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/jira.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,12 @@ fn decorate_issue_embed(e: &mut Embed, data: &JiraData, project_url: String, iss

for item in &data.changelog.items {
e.field(&item.field, "", false)
.field("From", &item.from_string.unwrap_or("(unknown)".to_string()), true)
.field("To", &item.to_string.unwrap_or("(unknown)".to_string()), true);
.field(
"From",
item.from_string.as_ref().unwrap_or(&"(unknown)".to_string()),
true,
)
.field("To", item.to_string.as_ref().unwrap_or(&"(unknown)".to_string()), true);
}
}
"jira:issue_deleted" => {
Expand Down

0 comments on commit c531105

Please sign in to comment.