diff --git a/src/lib.rs b/src/lib.rs index 3704eba..2dff3e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ // 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 std::collections::HashMap; +use std::collections::{BTreeMap, HashMap}; use std::str::FromStr; use jid::Jid; @@ -41,6 +41,7 @@ impl<'a> From>>> for Token<'a> { } pub static DEFAULT_NS: &'static str = "jabber:client"; +pub static SCANSION_NS: &'static str = "https://matthewwild.co.uk/projects/scansion"; pub type AccountName = String; @@ -247,9 +248,12 @@ fn parse_send_receive<'a>(tagname: &str, name: String, s: Span<'a>) -> IResult (s, Action::Send(name, elem)), "receives:" => (s, Action::Receive(name, elem)),