From 283c781a921c7a6e4e969c4554a573051f70de73 Mon Sep 17 00:00:00 2001 From: Stephen D <webmaster@scd31.com> Date: Thu, 13 Jun 2024 21:29:23 -0300 Subject: [PATCH] build fix --- src/models.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/models.rs b/src/models.rs index bae06f4..8ab40c1 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,14 +1,6 @@ use crate::schema::user_programs; use bigdecimal::BigDecimal; -#[derive(Queryable)] -pub struct UserProgram { - pub id: i32, - pub discord_user_id: u64, - pub name: String, - pub code: String, -} - #[derive(Insertable)] #[table_name = "user_programs"] pub struct NewUserProgram<'a> { @@ -19,7 +11,9 @@ pub struct NewUserProgram<'a> { #[derive(Clone, Queryable)] pub struct ServerSetting { + #[allow(dead_code)] pub id: i32, + #[allow(dead_code)] pub guild_id: BigDecimal, pub starboard_threshold: i32, pub starboard_emoji_id: BigDecimal, -- GitLab