mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
rm url field from DatabaseBuilder
This commit is contained in:
@@ -71,7 +71,6 @@ struct DatabaseBuilder {
|
|||||||
pub username: String,
|
pub username: String,
|
||||||
pub password: String,
|
pub password: String,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub url: String,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DatabaseBuilder {
|
impl DatabaseBuilder {
|
||||||
@@ -85,7 +84,6 @@ impl DatabaseBuilder {
|
|||||||
port: url.port().expect("Enter database port").into(),
|
port: url.port().expect("Enter database port").into(),
|
||||||
hostname: url.host().expect("Enter database host").to_string(),
|
hostname: url.host().expect("Enter database host").to_string(),
|
||||||
username: url.username().into(),
|
username: url.username().into(),
|
||||||
url: url.to_string(),
|
|
||||||
password: url.password().expect("Enter database password").into(),
|
password: url.password().expect("Enter database password").into(),
|
||||||
name,
|
name,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user