coderabbitai fixes

This commit is contained in:
euzu
2025-04-25 13:42:13 +02:00
parent 14c2d448d7
commit 76e034192e
4 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ impl TVGuide {
let match_jw = strsim::jaro_winkler(norm_key, normalized_epg_id);
#[allow(clippy::cast_possible_truncation)]
#[allow(clippy::cast_sign_loss)]
let mjw = min(100, match_jw as u16 * 100);
let mjw = min(100, (match_jw * 100.0).round() as u16);
if mjw >= match_threshold {
let mut lock = data.lock().unwrap();
if lock.0 < mjw {