refactor: 允许未使用的get_result_mode_from_conn函数

This commit is contained in:
2025-09-20 00:17:31 +08:00
parent d8116ff8dc
commit baa787934a

View File

@ -209,6 +209,7 @@ fn extract_connection_url(cfg: Value) -> anyhow::Result<String> {
}
}
#[allow(dead_code)]
fn get_result_mode_from_conn(conn: &Option<Value>) -> Option<String> {
match conn {
Some(Value::Object(m)) => m.get("mode").and_then(|v| v.as_str()).map(|s| s.to_string()),