From afc3ffd89f34e301f3c539de0b8b4a0c180b45e3 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 29 Jun 2023 15:46:36 +0200 Subject: [PATCH] sane formatting --- src/routes/admin.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/routes/admin.rs b/src/routes/admin.rs index a4b2fdc..f782ced 100644 --- a/src/routes/admin.rs +++ b/src/routes/admin.rs @@ -31,11 +31,7 @@ pub async fn bootstrap(State(state): State>) -> Result let password = random(); sqlx::query!( - r#" - INSERT INTO users ( name, display_name, password, roles ) - VALUES ( $1, $2, $3, $4 ) - RETURNING id - "#, + r#"INSERT INTO users ( name, display_name, password, roles ) VALUES ( $1, $2, $3, $4 ) RETURNING id"#, username, "Administrator", hash(&password)?,