Apply suggestions from code review

Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
Irevoire
2021-09-22 16:59:23 +02:00
committed by Tamo
parent 47ee93b0bd
commit 218f0a6661
3 changed files with 10 additions and 10 deletions

View File

@ -24,17 +24,17 @@ impl fmt::Display for CriterionError {
Self::ReservedNameForSort { name } => {
write!(
f,
"{0} is a reserved keyword and thus can't be used as a ranking rule. \
{0} can only be used for sorting at search time",
name
"{} is a reserved keyword and thus can't be used as a ranking rule. \
{} can only be used for sorting at search time",
name, name
)
}
Self::ReservedNameForFilter { name } => {
write!(
f,
"{0} is a reserved keyword and thus can't be used as a ranking rule. \
{0} can only be used for filtering at search time",
name
"{} is a reserved keyword and thus can't be used as a ranking rule. \
{} can only be used for filtering at search time",
name, name
)
}
}