Remove useless where clauses for the criteria

This commit is contained in:
Kerollmops 2021-03-03 18:09:19 +01:00
parent 07784c8990
commit 1fc25148da
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
4 changed files with 12 additions and 12 deletions

View File

@ -37,7 +37,7 @@ impl<'t> AscDesc<'t> {
candidates: Option<RoaringBitmap>,
field_id: FieldId,
facet_type: FacetType,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Self::initial(index, rtxn, query_tree, candidates, field_id, facet_type, true)
}
@ -49,7 +49,7 @@ impl<'t> AscDesc<'t> {
candidates: Option<RoaringBitmap>,
field_id: FieldId,
facet_type: FacetType,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Self::initial(index, rtxn, query_tree, candidates, field_id, facet_type, false)
}
@ -60,7 +60,7 @@ impl<'t> AscDesc<'t> {
parent: Box<dyn Criterion + 't>,
field_id: FieldId,
facet_type: FacetType,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Self::new(index, rtxn, parent, field_id, facet_type, true)
}
@ -71,7 +71,7 @@ impl<'t> AscDesc<'t> {
parent: Box<dyn Criterion + 't>,
field_id: FieldId,
facet_type: FacetType,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Self::new(index, rtxn, parent, field_id, facet_type, false)
}
@ -84,7 +84,7 @@ impl<'t> AscDesc<'t> {
field_id: FieldId,
facet_type: FacetType,
ascending: bool,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
let faceted_candidates = index.faceted_documents_ids(rtxn, field_id)?;
let candidates = match &query_tree {
@ -120,7 +120,7 @@ impl<'t> AscDesc<'t> {
field_id: FieldId,
facet_type: FacetType,
ascending: bool,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Ok(AscDesc {
index,

View File

@ -22,7 +22,7 @@ impl<'t> Proximity<'t> {
ctx: &'t dyn Context,
query_tree: Option<Operation>,
candidates: Option<RoaringBitmap>,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Ok(Proximity {
ctx,
@ -38,7 +38,7 @@ impl<'t> Proximity<'t> {
pub fn new(
ctx: &'t dyn Context,
parent: Box<dyn Criterion + 't>,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Ok(Proximity {
ctx,

View File

@ -24,7 +24,7 @@ impl<'t> Typo<'t> {
ctx: &'t dyn Context,
query_tree: Option<Operation>,
candidates: Option<RoaringBitmap>,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Ok(Typo {
ctx,
@ -41,7 +41,7 @@ impl<'t> Typo<'t> {
pub fn new(
ctx: &'t dyn Context,
parent: Box<dyn Criterion + 't>,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Ok(Typo {
ctx,

View File

@ -21,7 +21,7 @@ impl<'t> Words<'t> {
ctx: &'t dyn Context,
query_tree: Option<Operation>,
candidates: Option<RoaringBitmap>,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Ok(Words {
ctx,
@ -36,7 +36,7 @@ impl<'t> Words<'t> {
pub fn new(
ctx: &'t dyn Context,
parent: Box<dyn Criterion + 't>,
) -> anyhow::Result<Self> where Self: Sized
) -> anyhow::Result<Self>
{
Ok(Words {
ctx,