diff --git a/src/main.rs b/src/main.rs index dd53cf7..7406560 100644 --- a/src/main.rs +++ b/src/main.rs @@ -144,6 +144,7 @@ fn build() { .from_reader(io::stdin()); let entries = csv_reader.deserialize() .filter_map(|r: Result| r.ok()) + .filter(|full| match full.status { Status::Live => true, _ => false }) .map(|full: Postcode| SmolPostcode::from_postcode(full)) .map(|smol| Entry::new(smol.postcode.to_owned(), SerdeWrapper(smol)));