Maxime “pep” Buquet
1c5551a917
Move the NamespaceAwareCompare implementation from xmpp-parsers as Node and Element's PartialEq implementation. Thanks Astro! It's a lot more useful in tests to use `assert_eq!` than `assert!`, so we get both items compared (left and right) instead of a "it failed." message. This "breaks" comparison for these two structs in the sense that it is not strict object comparison anymore but it ensures that namespaces are all present in the compared objects. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
15 lines
466 B
Rust
15 lines
466 B
Rust
// Copyright (c) 2019 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// 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/.
|
|
|
|
/// Error type returned by every parser on failure.
|
|
pub mod error;
|
|
|
|
/// Various helpers.
|
|
pub(crate) mod helpers;
|
|
|
|
/// Helper macros to parse and serialise more easily.
|
|
#[macro_use]
|
|
mod macros;
|