From 7d9b836b27965421728fc72e6df0bf74b8121886 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 6 Apr 2018 19:29:43 -0400 Subject: fix struct order --- src/db/models.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/db') diff --git a/src/db/models.rs b/src/db/models.rs index 32ccc4b..88ee82c 100644 --- a/src/db/models.rs +++ b/src/db/models.rs @@ -54,8 +54,8 @@ impl NewMeme { pub struct Audio { pub id: i32, pub data: Vec, - pub data_hash: Vec, pub metadata_id: i32, + pub data_hash: Vec, } impl Audio { @@ -93,8 +93,8 @@ impl Audio { #[table_name="audio"] pub struct NewAudio { pub data: Vec, - pub data_hash: Vec, pub metadata_id: i32, + pub data_hash: Vec, } @@ -103,8 +103,8 @@ pub struct NewAudio { pub struct Image { pub id: i32, pub data: Vec, - pub data_hash: Vec, pub metadata_id: i32, + pub data_hash: Vec, } impl Image { @@ -142,8 +142,8 @@ impl Image { #[table_name="images"] pub struct NewImage { pub data: Vec, - pub data_hash: Vec, pub metadata_id: i32, + pub data_hash: Vec, } -- cgit v1.3.1