Update xmpp dependency to 0.5

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-08-21 13:13:47 +02:00
commit acf22a05c1
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2
3 changed files with 9 additions and 11 deletions

View file

@ -16,15 +16,15 @@
#![feature(let_chains)]
#![feature(never_type)]
mod bot;
mod error;
mod web;
mod webhook;
mod xmpp;
use crate::bot::XmppClient;
use crate::error::Error;
use crate::web::webhooks;
use crate::webhook::WebHook;
use crate::xmpp::XmppClient;
use std::convert::Infallible;
use std::fs::File;
@ -41,7 +41,7 @@ use hyper::{
use log::debug;
use serde::{Deserialize, Serialize};
use tokio::sync::mpsc;
use xmpp_parsers::BareJid;
use xmpp::BareJid;
#[derive(Debug, Serialize, Deserialize)]
struct Config {
@ -155,7 +155,7 @@ async fn main() -> Result<!, Error> {
}
let mut client = XmppClient::new(
&String::from(config.jid),
config.jid,
config.password.as_str(),
config.rooms,
config.nickname,