From 769cb78141ac6f50987e4e2e7df025e5066a2c19 Mon Sep 17 00:00:00 2001 From: jellywx Date: Thu, 7 Jan 2021 21:11:02 +0000 Subject: [PATCH] removed async_trait from deps to use reexport from serenity --- Cargo.lock | 1 - Cargo.toml | 1 - src/commands/todo_cmds.rs | 3 +-- src/framework.rs | 3 +-- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cea29de..c81db0d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1319,7 +1319,6 @@ name = "reminder_rs" version = "1.4.0" dependencies = [ "Inflector", - "async-trait", "chrono", "chrono-tz", "dotenv", diff --git a/Cargo.toml b/Cargo.toml index 165b3f3..489a499 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,6 @@ tokio = { version = "0.2", features = ["process"] } reqwest = { version = "0.10", features = ["rustls-tls"] } sqlx = { version = "0.4", default-features = false, features = ["runtime-tokio-rustls", "macros", "mysql", "bigdecimal", "chrono"] } regex = "1.4" -async-trait = "0.1" log = "0.4" env_logger = "0.8" chrono = "0.4" diff --git a/src/commands/todo_cmds.rs b/src/commands/todo_cmds.rs index 14a1784..6686cd8 100644 --- a/src/commands/todo_cmds.rs +++ b/src/commands/todo_cmds.rs @@ -1,6 +1,7 @@ use regex_command_attr::command; use serenity::{ + async_trait, client::Context, constants::MESSAGE_CODE_LIMIT, model::{ @@ -18,8 +19,6 @@ use crate::{ use sqlx::MySqlPool; use std::convert::TryFrom; -use async_trait::async_trait; - #[derive(Debug)] struct TodoNotFound; diff --git a/src/framework.rs b/src/framework.rs index 7cb6817..4d1e048 100644 --- a/src/framework.rs +++ b/src/framework.rs @@ -1,6 +1,5 @@ -use async_trait::async_trait; - use serenity::{ + async_trait, client::Context, constants::MESSAGE_CODE_LIMIT, framework::Framework,