mirror of
https://github.com/servo/servo.git
synced 2025-06-14 11:24:33 +00:00
Add &DomRoot<T> lint check So far, the lint check code appears to work as intended. However, some trait implementations require modification to pass the lint check and I'm not sure how to fix these. Commit 92cf5d5 attempts to correct one of the implementations, but fails to compile with error: ``` --> components/script/dom/servoparser/xml.rs:76:36 | 76 | tree_builder.trace_handles(&tracer); | ^^^^^^^ expected struct `dom::bindings::root::Dom`, found struct `dom::node::Node` | = note: expected struct `dom::bindings::root::Dom<dom::node::Node>` found struct `dom::node::Node` = note: required for the cast to the object type `dyn html5ever::tree_builder::Tracer<Handle = dom::bindings::root::Dom<dom::node::Node>>` ``` I've tried to debug further but to no avail. I also don't want to mangle too much existing code unnecessarily. Any help is appreciated. <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors `./mach test-tidy --all` does, and some are directly related to this PR - [ ] These changes fix #25342 The fix is a WIP <!-- Either: --> - [X] There are tests for these changes Note that I will clean up the commit history before the final PR. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> |
||
---|---|---|
.. | ||
servo | ||
tidy | ||
mach_bootstrap.py | ||
README.md | ||
requirements-salt.txt | ||
requirements.txt | ||
tox.ini |
This directory contains various Python modules used to support servo development.
servo
servo-specific python code e.g. implementations of mach commands. This is the canonical repository for this code.
tidy
servo-tidy is used to check licenses, line lengths, whitespace, flake8 on Python files, lock file versions, and more.