Skip to content

Commit

Permalink
removed async trait from message Rustina trait
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Nov 22, 2023
1 parent 04349f9 commit 9d9b7f5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/utils/message.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
use async_trait::async_trait;
use teloxide::{
prelude::*,
requests::JsonRequest,
types::*,
{payloads, payloads::*},
};

#[async_trait]
pub trait Rustina {
type Err: std::error::Error + Send;
type SendMessageTF: Request<Payload = SendMessage, Err = Self::Err>;
Expand All @@ -18,7 +16,6 @@ pub trait Rustina {
T: Into<String>;
}

#[async_trait]
impl Rustina for Bot {
type Err = teloxide::errors::RequestError;
type SendMessageTF = JsonRequest<payloads::SendMessage>;
Expand Down

0 comments on commit 9d9b7f5

Please sign in to comment.