aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servohtmlparser.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-10-15 15:00:00 -0600
committerbors-servo <metajack+bors@gmail.com>2015-10-15 15:00:00 -0600
commit9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c (patch)
treec027369e6a9df652db47366b6bb9da503849f0e5 /components/script/dom/servohtmlparser.rs
parent6f1db0fcd3ef861f61bed6b75aae63d738e575ba (diff)
parent8819f0d8b86a59acbad9b3127171fce4728b0cdd (diff)
downloadservo-9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c.tar.gz
servo-9d5f09e09c64d878e6c2bb273195c3c6ca9fe82c.zip
Auto merge of #8030 - Manishearth:fix-lint-fn, r=frewsxcv
Fix unrooted_must_root lint to handle arguments/return types properly r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8030) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r--components/script/dom/servohtmlparser.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs
index fd854768347..acea9113127 100644
--- a/components/script/dom/servohtmlparser.rs
+++ b/components/script/dom/servohtmlparser.rs
@@ -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(),