From d03095dbc3aa2c5785a42caef7a7488e0165e99d Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 28 Mar 2025 13:39:07 -0700 Subject: [PATCH] cargo clippy --fix --- tegakituesday/src/main.rs | 2 +- tegakituesday/src/models/database.rs | 5 +---- tegakituesday/src/routes/get_guilds.rs | 1 - tegakituesday/src/routes/testing.rs | 3 +-- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/tegakituesday/src/main.rs b/tegakituesday/src/main.rs index 28f26f4..b5fb184 100644 --- a/tegakituesday/src/main.rs +++ b/tegakituesday/src/main.rs @@ -4,7 +4,7 @@ extern crate rocket; use clap::{Parser, Subcommand}; use poise::serenity_prelude::Http; use rocket::{ - fs::{relative, FileServer}, futures::task, Ignite, Rocket + fs::{relative, FileServer}, Ignite, Rocket }; use rocket_dyn_templates::{tera, Template}; use tokio::time; diff --git a/tegakituesday/src/models/database.rs b/tegakituesday/src/models/database.rs index 3642619..8496004 100644 --- a/tegakituesday/src/models/database.rs +++ b/tegakituesday/src/models/database.rs @@ -1,14 +1,11 @@ use std::collections::HashSet; -use std::result; use std::{collections::HashMap, fs::File, io::Read, path::Path}; use derive_more::From; -use poise::serenity_prelude::http::error::ErrorResponse; -use poise::serenity_prelude::{Http, HttpError, SerenityError, StatusCode}; +use poise::serenity_prelude::{Http, SerenityError, StatusCode}; use r2d2::{Pool, PooledConnection}; use r2d2_sqlite::rusqlite::{self, params}; use r2d2_sqlite::SqliteConnectionManager; -use rocket::error; use crate::{models::User, utils::get_challenge_number}; diff --git a/tegakituesday/src/routes/get_guilds.rs b/tegakituesday/src/routes/get_guilds.rs index 2181ee2..58fd54c 100644 --- a/tegakituesday/src/routes/get_guilds.rs +++ b/tegakituesday/src/routes/get_guilds.rs @@ -1,4 +1,3 @@ -use poise::serenity_prelude::Http; use rocket::response::stream::{Event, EventStream}; use rocket::{http::CookieJar, State}; diff --git a/tegakituesday/src/routes/testing.rs b/tegakituesday/src/routes/testing.rs index ee7be4b..21607bf 100644 --- a/tegakituesday/src/routes/testing.rs +++ b/tegakituesday/src/routes/testing.rs @@ -1,7 +1,6 @@ use std::ops::Deref; -use poise::serenity_prelude::Http; -use rocket::{http::CookieJar, State}; +use rocket::http::CookieJar; use crate::{models::SessionUser, HTTP};