From e46360eaa79c9ec06f97428295e05df393b22415 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Thu, 1 Feb 2024 12:34:12 -0800 Subject: [PATCH] format some sql strings --- src/tables.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tables.rs b/src/tables.rs index e95e12b..cbf3bc2 100644 --- a/src/tables.rs +++ b/src/tables.rs @@ -24,8 +24,9 @@ impl Post { .fetch_all( sqlx::query( r#" - INSERT INTO posts (title, body, published) - VALUES ($1, $2, $3); "#, + INSERT INTO posts (title, body, published) + VALUES ($1, $2, $3); + "#, ) .bind(title) .bind(body) @@ -65,9 +66,9 @@ impl User { .fetch_all( sqlx::query( r#" - INSERT INTO users (username, password) - VALUES ($1, $2); - "#, + INSERT INTO users (username, password) + VALUES ($1, $2); + "#, ) .bind(username) .bind(sha256::digest(password)),