macros: Remove use requirement on ns.

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-14 16:30:28 +02:00
commit 93b018e5ac
41 changed files with 112 additions and 141 deletions

View file

@ -6,12 +6,10 @@
#![deny(missing_docs)]
use ns;
generate_element_enum!(
/// Enum representing chatstate elements part of the
/// `http://jabber.org/protocol/chatstates` namespace.
ChatState, "chatstate", ns::CHATSTATES, {
ChatState, "chatstate", CHATSTATES, {
/// `<active xmlns='http://jabber.org/protocol/chatstates'/>`
Active => "active",
@ -35,6 +33,7 @@ mod tests {
use try_from::TryFrom;
use minidom::Element;
use error::Error;
use ns;
#[test]
fn test_simple() {