forked from Skynet/discord-bot
clippy: changes from nightly clippy
all of this is embeding teh var into teh format macro
This commit is contained in:
parent
9d409e3692
commit
d0726169ee
17 changed files with 47 additions and 47 deletions
|
@ -225,7 +225,7 @@ pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {
|
|||
let pool = SqlitePoolOptions::new()
|
||||
.max_connections(5)
|
||||
.connect_with(
|
||||
SqliteConnectOptions::from_str(&format!("sqlite://{}", database))?
|
||||
SqliteConnectOptions::from_str(&format!("sqlite://{database}"))?
|
||||
.foreign_keys(true)
|
||||
.create_if_missing(true),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue