diff --git a/Cargo.lock b/Cargo.lock index 0969b81..2c01f2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -30,7 +30,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "berlin-core" -version = "0.2.5" +version = "0.2.6" dependencies = [ "ahash", "csv", diff --git a/Cargo.toml b/Cargo.toml index 7ea90a1..45e9f64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "berlin-core" -version = "0.2.5" +version = "0.2.6" edition = "2021" license = "MIT" description = "Identify locations and tag them with UN-LOCODEs and ISO-3166-2 subdivisions." diff --git a/src/location.rs b/src/location.rs index eae2761..3f4c8a6 100644 --- a/src/location.rs +++ b/src/location.rs @@ -347,10 +347,10 @@ impl Generic { coordinates: match r.get("c") { Some(coords) => match coordinates::coordinate_parser(coords) { Ok(coords) => Some(coords.1), - _ => None + _ => None, }, - None => None - } + None => None, + }, }) } } diff --git a/tests/test_code_list.rs b/tests/test_code_list.rs index 81021fa..a4a89a3 100644 --- a/tests/test_code_list.rs +++ b/tests/test_code_list.rs @@ -182,12 +182,7 @@ fn should_search_punctuation(fake_data: &LocationsDb) { #[rstest] fn should_search_generic(fake_data: &LocationsDb) { - let search_term = SearchTerm::from_raw_query( - "One1".to_string(), - None, - 5, - 3, - ); + let search_term = SearchTerm::from_raw_query("One1".to_string(), None, 5, 3); let results = fake_data.search(&search_term); assert![results.len() == 1, "Found {}", results.len()];