ソースを参照

change 'into_iter' => 'iter'

chaz-kiker 3 年 前
コミット
2388ab5413
1 ファイル変更4 行追加3 行削除
  1. 4 3
      src/github.rs

+ 4 - 3
src/github.rs

@@ -1065,12 +1065,13 @@ impl<'q> IssuesQuery for Query<'q> {
             .get_issues(&client, self)
             .await
             .with_context(|| "Unable to get issues.")?;
+
         let issues_decorator: Vec<_> = issues
-            .into_iter()
+            .iter()
             .map(|issue| async move {
-                // TODO: this seems like a *really* bad approach, but I'm not sure how to make it better
-                let fcp_map = crate::rfcbot::get_all_fcps().await?;
                 let fcp_details = if include_fcp_details {
+                    // TODO: this seems like a *really* bad approach, but I'm not sure how to make it better
+                    let fcp_map = crate::rfcbot::get_all_fcps().await?;
                     let repository_name = if let Some(repo) = issue.repository.get() {
                         repo.repository.clone()
                     } else {