Skip to content

Fix warnings in xml5ever #315

@jdm

Description

@jdm
warning: unused macro definition
   --> target/package/xml5ever-0.11.0/src/tokenizer/mod.rs:609:1
    |
609 | / macro_rules! go_match ( ( $me:ident : $x:expr, $($pats:pat),+ => $($cmds:tt)* ) => (
610 | |     match $x {
611 | |         $($pats)|+ => go!($me: $($cmds)*),
612 | |         _ => (),
613 | |     }
614 | | ));
    | |___^
    |
    = note: #[warn(unused_macros)] on by default

warning: unused macro definition
   --> target/package/xml5ever-0.11.0/src/tokenizer/mod.rs:622:1
    |
622 | / macro_rules! peek ( ($me:expr) => (
623 | |     unwrap_or_return!($me.peek(), false)
624 | | ));
    | |___^

warning: variable does not need to be mutable
   --> target/package/xml5ever-0.11.0/src/tree_builder/mod.rs:359:13
    |
359 |         for mut attr in tag.attrs.iter_mut()
    |             ---^^^^^
    |             |
    |             help: remove this `mut`
    |
    = note: #[warn(unused_mut)] on by default

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions