From d19fb43ada773e57db29770f7d0a13acdf4f6a95 Mon Sep 17 00:00:00 2001 From: Arlo Filley Date: Sun, 6 Nov 2022 19:07:46 +0000 Subject: [PATCH] made code more readable --- src/main.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4f32d18..f2d6c8d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,8 +25,16 @@ struct PostTest<'r> { #[post("/post_test", data = "")] fn post_test(test: Json>) { - sql::post_test(test.test_type, test.test_length, test.test_time, test.test_seed, test.quote_id, test.wpm, test.accuracy, test.user_id) - .expect("error in posting test to tests table"); + sql::post_test( + test.test_type, + test.test_length, + test.test_time, + test.test_seed, + test.quote_id, + test.wpm, + test.accuracy, + test.user_id + ).expect("error in posting test to tests table"); } #[launch]