From 5b54a32563fd7114106b75c29d0e7242ec0cbfbe Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Wed, 16 Jun 2021 12:02:28 +0200 Subject: [PATCH] use concrete return type, fixes #1084 --- src/fastfield/readers.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fastfield/readers.rs b/src/fastfield/readers.rs index 24c0d0a6e..ccd91b61f 100644 --- a/src/fastfield/readers.rs +++ b/src/fastfield/readers.rs @@ -8,7 +8,6 @@ use crate::space_usage::PerFieldSpaceUsage; use crate::TantivyError; use super::reader::DynamicFastFieldReader; -use super::FastFieldReader; /// Provides access to all of the BitpackedFastFieldReader. /// @@ -138,7 +137,7 @@ impl FastFieldReaders { /// Returns the `i64` fast field reader reader associated to `field`. /// /// If `field` is not a i64 fast field, this method returns an Error. - pub fn i64(&self, field: Field) -> crate::Result> { + pub fn i64(&self, field: Field) -> crate::Result> { self.check_type(field, FastType::I64, Cardinality::SingleValue)?; self.typed_fast_field_reader(field) } @@ -146,7 +145,7 @@ impl FastFieldReaders { /// Returns the `i64` fast field reader reader associated to `field`. /// /// If `field` is not a i64 fast field, this method returns an Error. - pub fn date(&self, field: Field) -> crate::Result> { + pub fn date(&self, field: Field) -> crate::Result> { self.check_type(field, FastType::Date, Cardinality::SingleValue)?; self.typed_fast_field_reader(field) } @@ -154,7 +153,7 @@ impl FastFieldReaders { /// Returns the `f64` fast field reader reader associated to `field`. /// /// If `field` is not a f64 fast field, this method returns an Error. - pub fn f64(&self, field: Field) -> crate::Result> { + pub fn f64(&self, field: Field) -> crate::Result> { self.check_type(field, FastType::F64, Cardinality::SingleValue)?; self.typed_fast_field_reader(field) }