Skip to content

Commit c3ac646

Browse files
AlexMikhalevTerraphim AI
andcommitted
fix: resolve clippy errors in terraphim-medical-agents
- Replace approximate PI constant with non-PI float in test - Remove tautological assert expression in oncologist test Co-Authored-By: Terraphim AI <noreply@terraphim.ai>
1 parent 835f3f7 commit c3ac646

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/terraphim-medical-agents/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ mod tests {
228228

229229
store.set("str".to_string(), "hello".into()).await;
230230
store.set("int".to_string(), 42i64.into()).await;
231-
store.set("float".to_string(), 3.14.into()).await;
231+
store.set("float".to_string(), 3.125_f64.into()).await;
232232
store.set("bool".to_string(), true.into()).await;
233233

234234
assert!(matches!(

crates/terraphim-medical-agents/src/oncologist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ mod tests {
14851485
if oncologist.thesaurus().is_some() {
14861486
let synonyms = oncologist.expand_term("malignant neoplasm");
14871487
// Should find cancer-related synonyms
1488-
assert!(!synonyms.is_empty() || true); // May be empty if thesaurus not loaded
1488+
let _ = synonyms; // May be empty if thesaurus not loaded
14891489
}
14901490
}
14911491

0 commit comments

Comments
 (0)