style: 应用 Rust 格式化

This commit is contained in:
Illuminated2020 committed 2026-05-12 16:49:29 +08:00
1 parent 67a7ef4746
commit 5b62f936d1
6 files changed
+38 -47

No files matched your search

+5 -1
View File
@@ -165,7 +165,11 @@ pub async fn execute_query(pool: &SqlitePool, sql: &str) -> Result<QueryResult,
execute_query_with_row_limit(pool, sql, crate::query::MAX_ROWS).await
}
pub async fn execute_query_with_row_limit(pool: &SqlitePool, sql: &str, row_limit: usize) -> Result<QueryResult, String> {
pub async fn execute_query_with_row_limit(
pool: &SqlitePool,
sql: &str,
row_limit: usize,
) -> Result<QueryResult, String> {
let start = Instant::now();
let row_limit = row_limit.max(1);