You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix all clippy warnings
Addresses clippy errors so that
`cargo clippy --locked --all-targets -- -D warnings` passes cleanly:
- assert_eq!(x, true/false) -> assert!(x) / assert!(!x) in tests
- Remove needless borrows (&path.path(), &geojson, etc.)
- Change `const TEST_X: LazyLock<...>` to `static` (interior mutability
in const), which also fixes downstream borrow_interior_mutable_const
warnings
- Replace `x == None` with `x.is_none()`
- Replace manual Option::map(|x| x.clone()) with .cloned()
- Elide redundant lifetime in atp::mod::tags
- Remove redundant `use predicates;` import
- Fix inconsistent digit grouping (11_000_000_0 -> 110_000_000, etc.)
- Replace assert!(false, ...) with panic!(...)
- Replace .into_iter() on array ref with .iter()
- Remove redundant & in format! argument
Also ran cargo fmt to keep formatting consistent.
src/pipeline/osm/id_tagging_schema.rs is excluded here: it's generated
by scripts/generate_id_tagging_schema.py, so its remaining clippy
warnings (bool_assert_comparison) will be fixed by updating the
generator in a separate PR.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* Group positive/negative cases in test_is_wikidata_id
Per review feedback: visually separate the wikidata-key assertions
into a "true" block and a "false" block within the same test, instead
of interleaving them.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* Group positive/negative cases in remaining bool assertions
Per review feedback: visually separate the "should be present"
assertions from the "should be absent" ones, in the same tests, for
src/tables/u64_set.rs (test_contains, test_create,
writer::tests::test_create, writer::tests::test_create_single_value)
and src/coverage.rs (contains_wikidata_item test).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments