From 670c16a940e11079fafc7f6382ebfc101eec3761 Mon Sep 17 00:00:00 2001 From: ArloFilley Date: Tue, 1 Nov 2022 09:12:31 +0000 Subject: [PATCH] changes to main --- src/main.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8c68be1..cdb0bc5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ // relevant macros and imports for rocket.rs #[macro_use] extern crate rocket; -use rocket::{Rocket, Build, fs::{FileServer, relative}, serde::{Deserialize, json::Json}}; +use rocket::{Rocket, Build, fs::{FileServer, relative}, serde::{Deserialize, json::Json}, Error, Response}; pub mod sql; #[get("/")] @@ -25,17 +25,6 @@ struct PostTest<'r> { #[post("/post_test", data = "")] fn post_test(test: Json>) { - println!( - "{}\n{}\n{}\n{}\n{}\n{}\n{}\n{}", - test.test_type, - test.test_length, - test.test_time, - test.test_seed, - test.quote_id, - test.wpm, - test.accuracy, - test.user_id - ); 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"); }