Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
warning: variables can be used directly in the `format!` string --> src/cmd/geocode.rs:1739:17 | 1739 | / format!( 1740 | | "{{\"cityrecord\":{}, \"countryrecord\":{} \"us_fips_codes\":{}}}", 1741 | | cr_json, country_json, us_fips_codes_json 1742 | | ) | |_________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` warning: variables can be used directly in the `format!` string --> src/cmd/geocode.rs:1754:17 | 1754 | / format!( 1755 | | "{{\n \"cityrecord\":{},\n \"countryrecord\":{}\n \"us_fips_codes\":{}\n}}", 1756 | | cr_json, country_json, us_fips_codes_json 1757 | | ) | |_________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args warning: unnecessary closure used to substitute value for `Option::None` --> src/cmd/geocode.rs:2119:30 | 2119 | let us_state_fips_code = lookup_us_state_fips_code(&us_state_code).unwrap_or_else(|| "null"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------- | | | help: use `unwrap_or(..)` instead: `unwrap_or("null")` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations = note: `#[warn(clippy::unnecessary_lazy_evaluations)]` on by default
- Loading branch information