From b467f77a79f359b0812661eef276cb287667d193 Mon Sep 17 00:00:00 2001 From: James Pace Date: Wed, 14 Feb 2024 22:15:22 -0500 Subject: [PATCH] Put stuct first since it's easier that way for the walk through. --- src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 143a717..8ed9d51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,13 @@ use serde::{Deserialize, Serialize}; use sqlx::{types::Json, Row}; +#[derive(Serialize, Deserialize, Debug)] +struct Doc { + age: u32, + fav_color: String, + fav_movie: String, +} + #[tokio::main] async fn main() -> anyhow::Result<()> { // Connect to the database. @@ -61,10 +68,3 @@ async fn main() -> anyhow::Result<()> { Ok(()) } - -#[derive(Serialize, Deserialize, Debug)] -struct Doc { - age: u32, - fav_color: String, - fav_movie: String, -}