Repository navigation
Commit 6f00e7e
committed
id: rustfmt meta_client.rs and drop expect() in tags search parser (#2151)
Main-red breakage inherited by every PR: cargo-fmt/rustfmt/treefmt failed on meta_client.rs capped_response_error formatting, and clippy-lint hard-errored on clippy::expect_used at the two char-boundary expects in parse_search_query. The expects become let-else breaks (the loops guard on i < input.len(), so next() is always Some; no behaviour change — 68 tags tests pass) and meta_client.rs is reformatted. No other files touched.1 parent 5a34fa7 commit 6f00e7e
2 files changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1474 | 1474 | | |
1475 | 1475 | | |
1476 | 1476 | | |
1477 | | - | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
1478 | 1480 | | |
1479 | 1481 | | |
1480 | 1482 | | |
1481 | 1483 | | |
1482 | 1484 | | |
1483 | 1485 | | |
1484 | | - | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1485 | 1489 | | |
1486 | 1490 | | |
1487 | 1491 | | |
| |||
1496 | 1500 | | |
1497 | 1501 | | |
1498 | 1502 | | |
1499 | | - | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
1500 | 1506 | | |
1501 | 1507 | | |
1502 | 1508 | | |
| |||
0 commit comments