diff --git a/xmpp/src/agent.rs b/xmpp/src/agent.rs index a15a9d33..5513c1bf 100644 --- a/xmpp/src/agent.rs +++ b/xmpp/src/agent.rs @@ -4,9 +4,9 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +use alloc::sync::Arc; use std::collections::HashMap; use std::path::{Path, PathBuf}; -use std::sync::Arc; use tokio::sync::RwLock; use crate::{ diff --git a/xmpp/src/builder.rs b/xmpp/src/builder.rs index f60304f0..5b78b85b 100644 --- a/xmpp/src/builder.rs +++ b/xmpp/src/builder.rs @@ -6,9 +6,9 @@ #[cfg(any(feature = "starttls-rust", feature = "starttls-native"))] use crate::tokio_xmpp::connect::{DnsConfig, StartTlsServerConnector}; +use alloc::sync::Arc; +use core::str::FromStr; use std::collections::HashMap; -use std::str::FromStr; -use std::sync::Arc; use tokio::sync::RwLock; use crate::{ diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index cfee7336..d3d76f1c 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -7,6 +7,8 @@ #![deny(bare_trait_objects)] #![cfg_attr(docsrs, feature(doc_auto_cfg))] +extern crate alloc; + pub use tokio_xmpp; pub use tokio_xmpp::jid; pub use tokio_xmpp::minidom;