mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-28 01:01:00 +00:00
Do a first clippy pass
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user