From 44bb40d96d0dc289c42cc95652c3b71e5f4583fb Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 26 Feb 2025 16:20:28 +0000 Subject: [PATCH] fix: removing some deadweight --- src/commands/link_email.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/commands/link_email.rs b/src/commands/link_email.rs index 86e8c8e..44001d3 100644 --- a/src/commands/link_email.rs +++ b/src/commands/link_email.rs @@ -11,7 +11,6 @@ use sqlx::{Pool, Sqlite}; pub mod link { use super::*; - use serde::{Deserialize, Serialize}; use serenity::all::{CommandDataOption, CommandDataOptionValue, CommandInteraction, CommandOptionType, CreateCommand, CreateCommandOption}; pub async fn run(command: &CommandInteraction, ctx: &Context) -> String { @@ -265,19 +264,6 @@ pub mod link { .await } - #[derive(Serialize, Deserialize, Debug)] - #[serde(untagged)] - pub enum WolvesResultUserResult { - B(bool), - S(String), - } - - #[derive(Deserialize, Serialize, Debug)] - struct WolvesResultUser { - success: i64, - result: WolvesResultUserResult, - } - async fn save_to_db_user(db: &Pool, id_wolves: i64, email: &str) -> Result, sqlx::Error> { sqlx::query_as::<_, Wolves>( "