Skip to content

Commit 1636826

Browse files
committed
Fix warnings in xml5ever #315
1 parent c5798dc commit 1636826

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

xml5ever/src/tokenizer/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -606,23 +606,12 @@ macro_rules! go (
606606
( $me:ident : ) => (());
607607
);
608608

609-
macro_rules! go_match ( ( $me:ident : $x:expr, $($pats:pat),+ => $($cmds:tt)* ) => (
610-
match $x {
611-
$($pats)|+ => go!($me: $($cmds)*),
612-
_ => (),
613-
}
614-
));
615-
616609
// This is a macro because it can cause early return
617610
// from the function where it is used.
618611
macro_rules! get_char ( ($me:expr) => (
619612
unwrap_or_return!($me.get_char(), false)
620613
));
621614

622-
macro_rules! peek ( ($me:expr) => (
623-
unwrap_or_return!($me.peek(), false)
624-
));
625-
626615
macro_rules! pop_except_from ( ($me:expr, $set:expr) => (
627616
unwrap_or_return!($me.pop_except_from($set), false)
628617
));

xml5ever/src/tree_builder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ impl<Handle, Sink> XmlTreeBuilder<Handle, Sink>
356356
}
357357

358358
// Then we bind those namespace declarations to attributes
359-
for mut attr in tag.attrs.iter_mut()
359+
for attr in tag.attrs.iter_mut()
360360
.filter(|attr| attr.name.prefix != Some(namespace_prefix!("xmlns"))
361361
&& attr.name.local != local_name!("xmlns")) {
362362

0 commit comments

Comments
 (0)