diff --git a/Cargo.lock b/Cargo.lock index 20bc077..f5aea19 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1269,7 +1269,6 @@ dependencies = [ name = "rustina" version = "0.1.0" dependencies = [ - "async-trait", "crates_io_api", "log", "octocrab", diff --git a/Cargo.toml b/Cargo.toml index 86c9198..a121c92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ uuid = { version = "1.5.0", features = ["v4"] } serde_json = "1.0.108" serde = { version = "1.0.192", features = ["derive"] } octocrab = { version = "0.32.0" } -async-trait = "0.1.74" [profile.release] strip = true diff --git a/src/utils/message.rs b/src/utils/message.rs index 8121267..7028fb5 100644 --- a/src/utils/message.rs +++ b/src/utils/message.rs @@ -1,4 +1,3 @@ -use async_trait::async_trait; use teloxide::{ prelude::*, requests::JsonRequest, @@ -6,7 +5,6 @@ use teloxide::{ {payloads, payloads::*}, }; -#[async_trait] pub trait Rustina { type Err: std::error::Error + Send; type SendMessageTF: Request; @@ -18,7 +16,6 @@ pub trait Rustina { T: Into; } -#[async_trait] impl Rustina for Bot { type Err = teloxide::errors::RequestError; type SendMessageTF = JsonRequest;