Move Error, helpers and macros into a util module.
This commit is contained in:
parent
2a7cf487a4
commit
409a1dafa9
46 changed files with 98 additions and 107 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
use crate::data_forms::DataForm;
|
||||
use crate::date::DateTime;
|
||||
use crate::error::Error;
|
||||
use crate::util::error::Error;
|
||||
use crate::ns;
|
||||
use crate::pubsub::{ItemId, NodeName, Subscription, SubscriptionId};
|
||||
use jid::Jid;
|
||||
|
|
@ -298,7 +298,7 @@ impl From<PubSubEvent> for Element {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::compare_elements::NamespaceAwareCompare;
|
||||
use crate::util::compare_elements::NamespaceAwareCompare;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
use crate::data_forms::DataForm;
|
||||
use crate::error::Error;
|
||||
use crate::util::error::Error;
|
||||
use crate::iq::{IqGetPayload, IqResultPayload, IqSetPayload};
|
||||
use crate::ns;
|
||||
use crate::pubsub::{ItemId, NodeName, Subscription, SubscriptionId};
|
||||
|
|
@ -540,7 +540,7 @@ impl From<PubSub> for Element {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::compare_elements::NamespaceAwareCompare;
|
||||
use crate::util::compare_elements::NamespaceAwareCompare;
|
||||
|
||||
#[test]
|
||||
fn create() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue