@@ -13,7 +13,9 @@ use rust_project_goals::{
1313 gh:: {
1414 issue_id:: { IssueId , Repository } ,
1515 issues:: {
16- change_milestone, change_title, create_comment, create_issue, fetch_issue, list_issues_in_milestone, lock_issue, sync_assignees, update_issue_body, CONTINUING_GOAL_PREFIX , FLAGSHIP_LABEL , LOCK_TEXT
16+ change_milestone, change_title, create_comment, create_issue, fetch_issue,
17+ list_issues_in_milestone, lock_issue, sync_assignees, update_issue_body,
18+ CONTINUING_GOAL_PREFIX , FLAGSHIP_LABEL , LOCK_TEXT ,
1719 } ,
1820 labels:: GhLabel ,
1921 } ,
@@ -175,7 +177,6 @@ pub fn generate_issues(
175177 eprintln ! ( "Use `--commit` to execute the actions." ) ;
176178 return Ok ( ( ) ) ;
177179 }
178-
179180 }
180181}
181182
@@ -301,7 +302,10 @@ fn initialize_issues<'doc>(
301302 let existing_issue = if let Some ( tracking_issue) = desired_issue. tracking_issue {
302303 // a. We first check if there is a declared tracking issue in the markdown file.
303304 // If so, check if we've already loaded its data.
304- if let Some ( issue) = milestone_issues. iter ( ) . find ( |issue| issue. number == tracking_issue. number ) {
305+ if let Some ( issue) = milestone_issues
306+ . iter ( )
307+ . find ( |issue| issue. number == tracking_issue. number )
308+ {
305309 // If so, reuse it to avoid latency.
306310 Some ( issue. clone ( ) )
307311 } else {
@@ -318,7 +322,10 @@ fn initialize_issues<'doc>(
318322 // is created, we first create an issue for it, then do a loop and execute again.
319323 // This second time, we will find the issue with the known title, get its
320324 // number, and put that number into the markdown.
321- milestone_issues. iter ( ) . find ( |issue| issue. title == desired_issue. title ) . cloned ( )
325+ milestone_issues
326+ . iter ( )
327+ . find ( |issue| issue. title == desired_issue. title )
328+ . cloned ( )
322329 } ;
323330
324331 match existing_issue {
@@ -338,9 +345,12 @@ fn initialize_issues<'doc>(
338345 . collect ( ) ,
339346 } ) ;
340347 }
341-
348+
342349 if existing_issue. title != desired_issue. title {
343- actions. insert ( GithubAction :: ChangeTitle { number : existing_issue. number , title : desired_issue. title } ) ;
350+ actions. insert ( GithubAction :: ChangeTitle {
351+ number : existing_issue. number ,
352+ title : desired_issue. title ,
353+ } ) ;
344354 }
345355
346356 if existing_issue. milestone . as_ref ( ) . map ( |m| m. title . as_str ( ) ) != Some ( timeframe) {
@@ -350,9 +360,7 @@ fn initialize_issues<'doc>(
350360 } ) ;
351361 actions. insert ( GithubAction :: Comment {
352362 number : existing_issue. number ,
353- body : format ! (
354- "{CONTINUING_GOAL_PREFIX} {timeframe}" ,
355- ) ,
363+ body : format ! ( "{CONTINUING_GOAL_PREFIX} {timeframe}" , ) ,
356364 } ) ;
357365 }
358366
@@ -610,7 +618,7 @@ impl GithubAction<'_> {
610618 change_title ( repository, number, & title) ?;
611619 Ok ( ( ) )
612620 }
613-
621+
614622 GithubAction :: Comment { number, body } => {
615623 create_comment ( repository, number, & body) ?;
616624 Ok ( ( ) )
0 commit comments