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 <noreply@anthropic.com>
This commit is contained in:
jordan 2026-02-04 02:35:21 -07:00
parent 1cc453c97b
commit 0d38249c72
2 changed files with 2 additions and 2 deletions

View File

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

View File

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