Change sql template concatting
Switch out `format!` with `concat!`, which is doing work at compile time ...as far as I know at least
This commit is contained in:
parent
212b2d3bf2
commit
cfed9b149c
@ -96,8 +96,7 @@ async fn connect_sqlite(path: &PathBuf) -> sqlx::Result<SqliteConnection> {
|
|||||||
|
|
||||||
#[cfg(feature = "sqlite")]
|
#[cfg(feature = "sqlite")]
|
||||||
async fn load_sqlite_template(sqlite_handle: &mut SqliteConnection) -> sqlx::Result<SqliteQueryResult> {
|
async fn load_sqlite_template(sqlite_handle: &mut SqliteConnection) -> sqlx::Result<SqliteQueryResult> {
|
||||||
sqlx::query(&*format!(
|
sqlx::query(concat!(
|
||||||
"{} {} {} {} {} {}",
|
|
||||||
include_str!("sqlite/users.sql"),
|
include_str!("sqlite/users.sql"),
|
||||||
include_str!("sqlite/security_preferences.sql"),
|
include_str!("sqlite/security_preferences.sql"),
|
||||||
include_str!("sqlite/privacy_preferences.sql"),
|
include_str!("sqlite/privacy_preferences.sql"),
|
||||||
|
Loading…
Reference in New Issue
Block a user