Skip to content

Commit 93b78ee

Browse files
committed
Rustfmt
1 parent ed1f9c2 commit 93b78ee

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tools/agenda-generator/src/generator.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ impl GithubQuery {
530530
self
531531
}
532532

533-
fn skip<'a>(&mut self, to_skip: impl Iterator<Item=&'a Issue>) -> &mut Self {
533+
fn skip<'a>(&mut self, to_skip: impl Iterator<Item = &'a Issue>) -> &mut Self {
534534
self.to_skip = to_skip.map(|i| i.html_url.clone()).collect();
535535
self
536536
}
@@ -553,7 +553,6 @@ impl GithubQuery {
553553
fn write(&mut self, generator: &mut Generator) -> Result<Vec<Issue>> {
554554
let mut all_issues = Vec::new();
555555

556-
557556
for repo in &self.repos {
558557
for labels in &self.labels {
559558
let cs_labels = labels.join(",");
@@ -575,9 +574,7 @@ impl GithubQuery {
575574
.all(|&label| issue.labels.iter().any(|x| x == label))
576575
})
577576
});
578-
let issues = issues.filter(|i| {
579-
!self.to_skip.iter().any(|s| *s == i.html_url)
580-
});
577+
let issues = issues.filter(|i| !self.to_skip.iter().any(|s| *s == i.html_url));
581578

582579
let mut issues: Vec<_> = issues.collect();
583580

@@ -638,7 +635,6 @@ struct Issue {
638635
labels: Vec<String>,
639636
}
640637

641-
642638
fn escape(v: &str) -> String {
643639
let mut s = String::with_capacity(v.len() + 10);
644640
v.chars().for_each(|c| {

0 commit comments

Comments
 (0)