From 9bfff6e11bef5106c52b50eaa0e4ace5b9d1f77d Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 05:05:39 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ee/tabby-webserver/src/service/answer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/tabby-webserver/src/service/answer.rs b/ee/tabby-webserver/src/service/answer.rs index da8530185928..1247262d3887 100644 --- a/ee/tabby-webserver/src/service/answer.rs +++ b/ee/tabby-webserver/src/service/answer.rs @@ -1123,7 +1123,7 @@ mod tests { .collect_relevant_docs(&context_info_helper, &doc_query_3) .await; - assert!(hits_3.len() > 0); + assert!(!hits_3.is_empty()); // Test Case 4: Test with empty source IDs and no public search let doc_query_4 = DocQueryInput { @@ -1247,7 +1247,7 @@ mod tests { .create("test-repo".to_string(), TEST_GIT_URL.to_string()) .await .unwrap(); - let source_id = format!("git:{}", repo_id.to_string()); + let source_id = format!("git:{}", repo_id); println!("Created test repository with ID: {}", source_id);