From 0d38249c72320d0bf530a328fd35dee35eb723f9 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 4 Feb 2026 02:35:21 -0700 Subject: [PATCH] fix: resolve clippy warnings in test files - Use std::slice::from_ref instead of &[x.clone()] - Avoid approx_constant lint with explicit f64 suffix Co-Authored-By: Claude Opus 4.5 --- applications/aphoria/src/research/tests.rs | 2 +- applications/aphoria/src/tests/golden_path.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/aphoria/src/research/tests.rs b/applications/aphoria/src/research/tests.rs index bb47c1a..1314ba2 100644 --- a/applications/aphoria/src/research/tests.rs +++ b/applications/aphoria/src/research/tests.rs @@ -97,7 +97,7 @@ fn test_research_candidate_selection() { }; for i in 1..=5 { - store.record_gaps(&[high_gap.clone()], &format!("project{}", i)); + store.record_gaps(std::slice::from_ref(&high_gap), &format!("project{}", i)); } // Add gap seen in only 1 project (not candidate) diff --git a/applications/aphoria/src/tests/golden_path.rs b/applications/aphoria/src/tests/golden_path.rs index 2c61b14..331c4a5 100644 --- a/applications/aphoria/src/tests/golden_path.rs +++ b/applications/aphoria/src/tests/golden_path.rs @@ -163,7 +163,7 @@ async fn test_bless_args_value_parsing() { // Numeric values assert_eq!(parse_value("42"), stemedb_core::types::ObjectValue::Number(42.0)); - assert_eq!(parse_value("3.14"), stemedb_core::types::ObjectValue::Number(3.14)); + assert_eq!(parse_value("3.14"), stemedb_core::types::ObjectValue::Number(3.14_f64)); assert_eq!(parse_value("-1.5"), stemedb_core::types::ObjectValue::Number(-1.5)); // Text values (anything that doesn't parse as bool or number)