From e181dad8c73e664aace8b0b1e1e2b1523ff8c701 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Sat, 4 Apr 2026 09:47:10 +0000 Subject: [PATCH] fix: add missing warn import, cast f64 similarity to f32 --- src/lib.rs | 2 +- src/truth/worker.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 24fb76d..51e4092 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,7 +17,7 @@ use std::sync::Arc; use tokio::net::TcpListener; use tower_http::cors::{Any, CorsLayer}; use tower_http::trace::TraceLayer; -use tracing::{error, info}; +use tracing::{error, info, warn}; use crate::auth::auth_middleware; use crate::config::Config; diff --git a/src/truth/worker.rs b/src/truth/worker.rs index 2995df3..6305d3d 100644 --- a/src/truth/worker.rs +++ b/src/truth/worker.rs @@ -7,7 +7,7 @@ use std::sync::Arc; use anyhow::Result; -use tracing::{debug, error, info, warn}; +use tracing::{debug, info, warn}; use crate::config::TruthConfig; use crate::db::{Database, TruthScoreUpdate}; @@ -78,7 +78,7 @@ pub async fn run_scoring_cycle( let related: Vec = related_rows .into_iter() .map(|row| RelatedMemory { - similarity: row.similarity, + similarity: row.similarity as f32, content: row.content, truth_value: row.truth_value, truth_confidence: row.truth_confidence,