refactor(http): use reset_sortable_fields

This commit is contained in:
Alexey Shekhirin 2021-08-30 16:37:13 +03:00
parent 33514b28be
commit efa69875d9
No known key found for this signature in database
GPG Key ID: AF9A26AA133B5B98
1 changed files with 2 additions and 5 deletions

View File

@ -1,4 +1,4 @@
use std::collections::{BTreeMap, BTreeSet, HashSet};
use std::collections::{BTreeMap, BTreeSet};
use std::io;
use std::marker::PhantomData;
use std::num::NonZeroUsize;
@ -265,10 +265,7 @@ impl Index {
Setting::Set(ref fields) => {
builder.set_sortable_fields(fields.iter().cloned().collect())
}
Setting::Reset => {
// TODO we must use the reset_sortable_fields in a futur PR.
builder.set_sortable_fields(HashSet::new())
}
Setting::Reset => builder.reset_sortable_fields(),
Setting::NotSet => (),
}