diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-10-07 21:57:52 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-10-07 21:57:52 +0200 |
commit | 85ecbb03e299e99dbb2bc7864136a40add71df72 (patch) | |
tree | 4aa76ad71f8854d6fb6d6b8e1baefa584ab6a993 /src/discord.rs | |
parent | 4918d362600da542131b6e7cf8df4c2015f0cb6e (diff) | |
download | ezau-85ecbb03e299e99dbb2bc7864136a40add71df72.tar.gz ezau-85ecbb03e299e99dbb2bc7864136a40add71df72.tar.bz2 ezau-85ecbb03e299e99dbb2bc7864136a40add71df72.zip |
Update dependencies
The biggest adaption was the update to matrix-sdk 0.4, as some types got
shuffled around and the API is now imported from ruma. The
relates_to.is_none() check seems to no longer work, as Relation::_Custom
is used instead, so instead we now explicitely check if the message is
neither a reply nor a replacement (on a related note, it is unknown to
me whether we need to find the first original message or if we could
also set a replaces on the last message in the chain).
serenity, tokio and reqwest needed no API updates on the other hand.
Diffstat (limited to 'src/discord.rs')
-rw-r--r-- | src/discord.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/discord.rs b/src/discord.rs index c98a6c7..3ab849c 100644 --- a/src/discord.rs +++ b/src/discord.rs @@ -91,7 +91,7 @@ impl EventHandler for Handler { pub fn post_link(discord_token: &str, channel_id: u64, log: &Log, link: &str) -> Result<()> { let link = link.to_owned(); let log = log.clone(); - let mut rt = Runtime::new()?; + let rt = Runtime::new()?; rt.block_on(async { let mut client = Client::builder(discord_token) |