File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
//#![warn(missing_doc)]
2
2
#![ forbid( non_camel_case_types) ]
3
- #![ feature( macro_rules, struct_variant) ]
3
+ #![ feature( macro_rules, struct_variant, tuple_indexing ) ]
4
4
5
5
//! This crate currently provides almost XML 1.0/1.1-compliant pull parser.
6
6
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ impl Namespace {
41
41
let Namespace ( ref hm) = * self ;
42
42
for ( k, v) in hm. iter ( ) {
43
43
match ( k. as_ref ( ) . map ( |k| k. as_slice ( ) ) , v. as_slice ( ) ) {
44
- ( None , NS_EMPTY_URI ) |
45
- ( Some ( NS_XMLNS_PREFIX ) , NS_XMLNS_URI ) |
46
- ( Some ( NS_XML_PREFIX ) , NS_XML_URI ) => { } ,
44
+ ( None , u ) if u == NS_EMPTY_URI => { } ,
45
+ ( Some ( p ) , u ) if p == NS_XMLNS_PREFIX && u == NS_XMLNS_URI => { } ,
46
+ ( Some ( p ) , u ) if p == NS_XML_PREFIX && u == NS_XML_URI => { } ,
47
47
_ => return false
48
48
}
49
49
}
You can’t perform that action at this time.
0 commit comments