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
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
7 changed files with 22 additions and 27 deletions

View file

@ -204,7 +204,7 @@ impl std::convert::TryFrom<f64> for RankingScoreThreshold {
impl From<index::RankingScoreThreshold> for RankingScoreThreshold {
fn from(threshold: index::RankingScoreThreshold) -> Self {
let threshold = threshold.as_f64();
assert!(threshold >= 0.0 && threshold <= 1.0);
assert!((0.0..=1.0).contains(&threshold));
RankingScoreThreshold(threshold)
}
}