Skip to content

Commit f419830

Browse files
authored
fix(eval): satisfy Rust 1.98 clippy
Replace three constant-only format! calls so the eval tool remains warning-free on Rust 1.98.
1 parent 1668140 commit f419830

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/agent-memory-eval/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ fn convert_longmemeval(
731731
subject: Some(format!("{question_type} session {session_id}")),
732732
text: session_lines.join("\n"),
733733
markers: vec![
734-
format!("benchmark:longmemeval"),
734+
"benchmark:longmemeval".to_string(),
735735
format!("question_type:{}", safe_marker_value(&question_type)),
736736
"memory_granularity:session".to_string(),
737737
format!("session:{}", safe_marker_value(&session_id)),
@@ -799,7 +799,7 @@ fn convert_longmemeval(
799799
)),
800800
text: fact,
801801
markers: vec![
802-
format!("benchmark:longmemeval"),
802+
"benchmark:longmemeval".to_string(),
803803
format!("question_type:{}", safe_marker_value(&question_type)),
804804
"memory_granularity:key_fact".to_string(),
805805
format!("role:{}", safe_marker_value(&converted.role)),
@@ -828,7 +828,7 @@ fn convert_longmemeval(
828828
subject: Some(format!("{question_type} {} {session_id}", converted.role)),
829829
text: converted.content,
830830
markers: vec![
831-
format!("benchmark:longmemeval"),
831+
"benchmark:longmemeval".to_string(),
832832
format!("question_type:{}", safe_marker_value(&question_type)),
833833
"memory_granularity:turn".to_string(),
834834
format!("role:{}", safe_marker_value(&converted.role)),

0 commit comments

Comments
 (0)