remove all warnings

This commit is contained in:
Tamo
2022-10-10 15:16:22 +02:00
committed by Clément Renault
parent 06fadb3004
commit dc0f307d61
14 changed files with 26 additions and 521 deletions

View File

@ -148,17 +148,3 @@ impl From<CompatIndexV5ToV6> for CompatIndex {
CompatIndex::Compat(value)
}
}
/// Parses the v1 version of the Asc ranking rules `asc(price)`and returns the field name.
pub fn asc_ranking_rule(text: &str) -> Option<&str> {
text.split_once("asc(")
.and_then(|(_, tail)| tail.rsplit_once(')'))
.map(|(field, _)| field)
}
/// Parses the v1 version of the Desc ranking rules `desc(price)`and returns the field name.
pub fn desc_ranking_rule(text: &str) -> Option<&str> {
text.split_once("desc(")
.and_then(|(_, tail)| tail.rsplit_once(')'))
.map(|(field, _)| field)
}