From ad873c7ffc284d5645f21bed651d6e05f1533852 Mon Sep 17 00:00:00 2001 From: Xin Liu Date: Wed, 7 Aug 2024 10:25:59 +0900 Subject: [PATCH] chore: fix clippy issue Signed-off-by: Xin Liu --- src/backend/ggml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/ggml.rs b/src/backend/ggml.rs index e0bf1e3..3fdf72a 100644 --- a/src/backend/ggml.rs +++ b/src/backend/ggml.rs @@ -604,7 +604,7 @@ impl MergeRagContext for RagPromptBuilder { } None => { // compose new system message content - let content = format!("{}", context.trim_end()); + let content = context.trim_end().to_string(); // create system message ChatCompletionRequestMessage::new_system_message(content, None) }