Skip to content

Commit

Permalink
Temporary workaround for rust-lang/rust#18352
Browse files Browse the repository at this point in the history
  • Loading branch information
netvl committed Oct 26, 2014
1 parent 4c398c7 commit 5448726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//#![warn(missing_doc)]
#![forbid(non_camel_case_types)]
#![feature(macro_rules, struct_variant)]
#![feature(macro_rules, struct_variant, tuple_indexing)]

//! This crate currently provides almost XML 1.0/1.1-compliant pull parser.
Expand Down
6 changes: 3 additions & 3 deletions src/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ impl Namespace {
let Namespace(ref hm) = *self;
for (k, v) in hm.iter() {
match (k.as_ref().map(|k| k.as_slice()), v.as_slice()) {
(None, NS_EMPTY_URI) |
(Some(NS_XMLNS_PREFIX), NS_XMLNS_URI) |
(Some(NS_XML_PREFIX), NS_XML_URI) => {},
(None, u) if u == NS_EMPTY_URI => {},
(Some(p), u) if p == NS_XMLNS_PREFIX && u == NS_XMLNS_URI => {},
(Some(p), u) if p == NS_XML_PREFIX && u == NS_XML_URI => {},
_ => return false
}
}
Expand Down

0 comments on commit 5448726

Please sign in to comment.