refactor: 允许未使用的get_result_mode_from_conn函数
This commit is contained in:
@ -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> {
|
fn get_result_mode_from_conn(conn: &Option<Value>) -> Option<String> {
|
||||||
match conn {
|
match conn {
|
||||||
Some(Value::Object(m)) => m.get("mode").and_then(|v| v.as_str()).map(|s| s.to_string()),
|
Some(Value::Object(m)) => m.get("mode").and_then(|v| v.as_str()).map(|s| s.to_string()),
|
||||||
|
|||||||
Reference in New Issue
Block a user