Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
robfitzgerald committed Sep 30, 2024
1 parent 189d09c commit cc7191a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions us-census-tiger/src/ops/tiger_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ const GEOID_COLUMN_NAMES: [&str; 3] = ["GEOID", "GEOID20", "GEOID10"];
fn get_geoid_from_record(record: &Record, geoid_type: &GeoidType) -> Result<Geoid, String> {
let field_name = GEOID_COLUMN_NAMES
.iter()
.find(|col| record.get(*col).is_some())
.find(|col| record.get(col).is_some())
.ok_or_else(|| {
format!(
"could not find any of {} in shapefile",
GEOID_COLUMN_NAMES.iter().join(","),
)
})?;
let field_value = record.get(&field_name).ok_or_else(|| {
let field_value = record.get(field_name).ok_or_else(|| {
format!(
"could not find any of {} in shapefile",
GEOID_COLUMN_NAMES.iter().join(","),
Expand Down

0 comments on commit cc7191a

Please sign in to comment.