Skip to content

Commit 04b7659

Browse files
committed
don't destructure tuple for comparison
1 parent 299f2a7 commit 04b7659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ impl Repository {
15261526
) -> String {
15271527
let filters = filters
15281528
.iter()
1529-
.filter(|&&(key, val)| !(key == "state" && val == "all"))
1529+
.filter(|filter| **filter != ("state", "all"))
15301530
.map(|(key, val)| format!("{key}:{val}"))
15311531
.chain(include_labels.iter().map(|label| format!("label:{label}")))
15321532
.chain(exclude_labels.iter().map(|label| format!("-label:{label}")))

0 commit comments

Comments
 (0)