removed unused imports & unused serde-with dependency
This commit is contained in:
parent
d5c7662c1d
commit
16a33d7448
|
@ -755,7 +755,6 @@ dependencies = [
|
||||||
"ring",
|
"ring",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"serde_with",
|
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-stream",
|
"tokio-stream",
|
||||||
"tokio-tungstenite",
|
"tokio-tungstenite",
|
||||||
|
|
|
@ -31,7 +31,6 @@ rcgen = { version = "0.8", default-features = false }
|
||||||
ring = { version = "0.16", default-features = false }
|
ring = { version = "0.16", default-features = false }
|
||||||
serde = { version = "1", default-features = false, features = ["derive"] }
|
serde = { version = "1", default-features = false, features = ["derive"] }
|
||||||
serde_json = { version = "1", default-features = false, features = ["std"] }
|
serde_json = { version = "1", default-features = false, features = ["std"] }
|
||||||
serde_with = { version = "1", default-features = false, features = ["macros"] }
|
|
||||||
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "macros", "sync", "time"] }
|
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "macros", "sync", "time"] }
|
||||||
tokio-stream = { version = "0.1", default-features = false, features = ["time"] }
|
tokio-stream = { version = "0.1", default-features = false, features = ["time"] }
|
||||||
tokio-tungstenite = { version = "0.14", default-features = false, features = ["connect"] }
|
tokio-tungstenite = { version = "0.14", default-features = false, features = ["connect"] }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use std::{collections::HashMap, sync::Arc};
|
use std::sync::Arc;
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use colibri::ColibriMessage;
|
use colibri::ColibriMessage;
|
||||||
|
@ -6,8 +6,6 @@ use futures::{
|
||||||
sink::SinkExt,
|
sink::SinkExt,
|
||||||
stream::{StreamExt, TryStreamExt},
|
stream::{StreamExt, TryStreamExt},
|
||||||
};
|
};
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
use serde_with::{serde_as, DisplayFromStr};
|
|
||||||
use tokio::sync::{mpsc, Mutex};
|
use tokio::sync::{mpsc, Mutex};
|
||||||
use tokio_stream::wrappers::ReceiverStream;
|
use tokio_stream::wrappers::ReceiverStream;
|
||||||
use tokio_tungstenite::tungstenite::{http::Request, Message};
|
use tokio_tungstenite::tungstenite::{http::Request, Message};
|
||||||
|
|
|
@ -5,7 +5,6 @@ use futures::{
|
||||||
sink::{Sink, SinkExt},
|
sink::{Sink, SinkExt},
|
||||||
stream::{Stream, StreamExt, TryStreamExt},
|
stream::{Stream, StreamExt, TryStreamExt},
|
||||||
};
|
};
|
||||||
use maplit::hashmap;
|
|
||||||
use tokio::sync::{mpsc, oneshot, Mutex};
|
use tokio::sync::{mpsc, oneshot, Mutex};
|
||||||
use tokio_stream::wrappers::ReceiverStream;
|
use tokio_stream::wrappers::ReceiverStream;
|
||||||
use tokio_tungstenite::tungstenite::{
|
use tokio_tungstenite::tungstenite::{
|
||||||
|
@ -13,7 +12,6 @@ use tokio_tungstenite::tungstenite::{
|
||||||
Message,
|
Message,
|
||||||
};
|
};
|
||||||
use tracing::{debug, error, info, warn};
|
use tracing::{debug, error, info, warn};
|
||||||
use uuid::Uuid;
|
|
||||||
use xmpp_parsers::{
|
use xmpp_parsers::{
|
||||||
bind::{BindQuery, BindResponse},
|
bind::{BindQuery, BindResponse},
|
||||||
disco::{DiscoInfoQuery, DiscoInfoResult},
|
disco::{DiscoInfoQuery, DiscoInfoResult},
|
||||||
|
@ -135,12 +133,12 @@ impl Connection {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn jid(&self) -> Option<FullJid> {
|
pub async fn jid(&self) -> Option<FullJid> {
|
||||||
let mut locked_inner = self.inner.lock().await;
|
let locked_inner = self.inner.lock().await;
|
||||||
locked_inner.jid.clone()
|
locked_inner.jid.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn external_services(&self) -> Vec<xmpp::extdisco::Service> {
|
pub async fn external_services(&self) -> Vec<xmpp::extdisco::Service> {
|
||||||
let mut locked_inner = self.inner.lock().await;
|
let locked_inner = self.inner.lock().await;
|
||||||
locked_inner.external_services.clone()
|
locked_inner.external_services.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue