You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't ignore warnings in html5ever/src/tree_builder (#551)
* remove unnecessary references
Signed-off-by: Simon Wülker <[email protected]>
* remove unused imports
Signed-off-by: Simon Wülker <[email protected]>
* Restrict visibility of unreachable public items
This addresses the clippy::unreachable_pub lint
Signed-off-by: Simon Wülker <[email protected]>
* Replace .filter(..).next() calls with .find(..)
Signed-off-by: Simon Wülker <[email protected]>
* Remove unneeded "mut" qualifiers
Signed-off-by: Simon Wülker <[email protected]>
* Don't call .map with functions returning ()
This fixes a clippy lint
Signed-off-by: Simon Wülker <[email protected]>
* Replace trivial matches
These can all either use if-let branches
or the matches! macro
Signed-off-by: Simon Wülker <[email protected]>
* ignore clippy warnings in autogenerated code
Signed-off-by: Simon Wülker <[email protected]>
* Elide lifetimes where possible
Signed-off-by: Simon Wülker <[email protected]>
* Remove empty string literals in println!
Signed-off-by: Simon Wülker <[email protected]>
* Use Option::as_ref/as_deref where possible
Signed-off-by: Simon Wülker <[email protected]>
* Remove unneeded () returns
Signed-off-by: Simon Wülker <[email protected]>
* Remove unneeded field names
Signed-off-by: Simon Wülker <[email protected]>
* Simplify pop_until_current a bit
This also fixes a clippy warning
Signed-off-by: Simon Wülker <[email protected]>
* Ignore some variants that are never constructed
This is necessary to allow html5ever to build (due
to #[deny(warnings)].
We might want to remove these in the future,
but I'm not sure whether they're necessary.
* Format `html5ever/src/tree_builder/mod.rs`
Signed-off-by: Martin Robinson <[email protected]>
---------
Signed-off-by: Simon Wülker <[email protected]>
Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Martin Robinson <[email protected]>
0 commit comments