mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update script to work with lint changes
This commit is contained in:
parent
7022bedba3
commit
8819f0d8b8
6 changed files with 12 additions and 5 deletions
|
@ -43,6 +43,7 @@ pub struct Sink {
|
|||
}
|
||||
|
||||
impl Sink {
|
||||
#[allow(unrooted_must_root)] // method is only run at parse time
|
||||
pub fn get_or_create(&self, child: NodeOrText<JS<Node>>) -> Root<Node> {
|
||||
match child {
|
||||
NodeOrText::AppendNode(n) => n.root(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue