mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Do a first clippy pass
This commit is contained in:
parent
3c218cc3a0
commit
8fdcdee0cc
7 changed files with 22 additions and 27 deletions
|
@ -1984,7 +1984,7 @@ impl TryFrom<f64> for RankingScoreThreshold {
|
|||
type Error = InvalidSearchRankingScoreThreshold;
|
||||
|
||||
fn try_from(value: f64) -> StdResult<Self, Self::Error> {
|
||||
if value < 0.0 || value > 1.0 {
|
||||
if !(0.0..=1.0).contains(&value) {
|
||||
Err(InvalidSearchRankingScoreThreshold)
|
||||
} else {
|
||||
Ok(RankingScoreThreshold(value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue