Update script to work with lint changes

This commit is contained in:
Manish Goregaokar 2015-10-15 18:47:04 +05:30
parent 7022bedba3
commit 8819f0d8b8
6 changed files with 12 additions and 5 deletions

View file

@ -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(),