chore: cargo fmt with rustc 1.96 to fix CI format check
This commit is contained in:
parent
ba9dad7f7b
commit
b07273249b
|
|
@ -355,7 +355,11 @@ impl ConnectionConfig {
|
|||
DatabaseType::OpenGauss => format!("opengauss://{host}:{port}{db_part}"),
|
||||
DatabaseType::OceanbaseOracle => {
|
||||
let base = format!("oceanbase-oracle://{host}:{port}{db_part}");
|
||||
if params.is_empty() { base } else { format!("{base}?{params}") }
|
||||
if params.is_empty() {
|
||||
base
|
||||
} else {
|
||||
format!("{base}?{params}")
|
||||
}
|
||||
}
|
||||
DatabaseType::Gbase => format!("gbase://{host}:{port}{db_part}"),
|
||||
DatabaseType::H2 => format!("h2://{host}:{port}{db_part}"),
|
||||
|
|
@ -484,7 +488,11 @@ impl ConnectionConfig {
|
|||
}
|
||||
DatabaseType::OceanbaseOracle => {
|
||||
let base = format!("oceanbase-oracle://{}:{}@{host}:{port}{db_part}", username, password);
|
||||
if params.is_empty() { base } else { format!("{base}?{params}") }
|
||||
if params.is_empty() {
|
||||
base
|
||||
} else {
|
||||
format!("{base}?{params}")
|
||||
}
|
||||
}
|
||||
DatabaseType::Gbase => {
|
||||
format!("gbase://{}:{}@{host}:{port}{db_part}", username, password)
|
||||
|
|
|
|||
Loading…
Reference in New Issue