From 825923f6fc7b2c725dc4b932dedd23181836e65c Mon Sep 17 00:00:00 2001 From: Filip Bachul Date: Tue, 7 Feb 2023 18:58:09 +0100 Subject: [PATCH] export ParseGeoError --- milli/src/search/facet/filter.rs | 2 +- milli/src/search/facet/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/search/facet/filter.rs b/milli/src/search/facet/filter.rs index 548ed699e..35352c764 100644 --- a/milli/src/search/facet/filter.rs +++ b/milli/src/search/facet/filter.rs @@ -22,7 +22,7 @@ pub struct Filter<'a> { } #[derive(Debug)] -enum ParseGeoError { +pub enum ParseGeoError { BadGeo(String), BadGeoLat(f64), BadGeoLng(f64), diff --git a/milli/src/search/facet/mod.rs b/milli/src/search/facet/mod.rs index 73054b84a..0d0f96851 100644 --- a/milli/src/search/facet/mod.rs +++ b/milli/src/search/facet/mod.rs @@ -4,7 +4,7 @@ use heed::types::{ByteSlice, DecodeIgnore}; use heed::{BytesDecode, RoTxn}; pub use self::facet_distribution::{FacetDistribution, DEFAULT_VALUES_PER_FACET}; -pub use self::filter::Filter; +pub use self::filter::{Filter, ParseGeoError}; use crate::heed_codec::facet::{FacetGroupKeyCodec, FacetGroupValueCodec}; use crate::heed_codec::ByteSliceRefCodec; mod facet_distribution;