Ver código fonte

change 'into_iter' => 'iter'

chaz-kiker 3 anos atrás
pai
commit
2388ab5413
1 arquivos alterados com 4 adições e 3 exclusões
  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 {