Tweak macro to only accept literals

This commit is contained in:
Ryan Leckey
2019-12-27 22:56:10 -08:00
committed by Austin Bonander
parent 61237b8503
commit 8626cf5ba8
2 changed files with 9 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ async fn register(mut req: Request<PgPool>) -> Response {
INSERT INTO users ( username, email, password )
VALUES ( $1, $2, $3 )
RETURNING id, username, email
"#,
"#,
&*body.username,
&*body.email,
&*hash,