Do a first clippy pass

This commit is contained in:
Clément Renault
2025-06-03 14:47:39 +02:00
parent 3c218cc3a0
commit 8fdcdee0cc
7 changed files with 22 additions and 27 deletions

View File

@ -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))