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:
parent
1cc453c97b
commit
0d38249c72
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user