diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2015-10-18 14:52:18 -0700 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2015-10-23 14:43:44 -0700 |
commit | 81ecf7824cae9629be020332c836205fedaae1a2 (patch) | |
tree | e4bf83a26f9850ab16905ca1556eb882fd6b658a /components/script/dom/webglrenderingcontext.rs | |
parent | e3bcf7bab7d0340fc7ebd0e58a2cde34e534c1cf (diff) | |
download | servo-81ecf7824cae9629be020332c836205fedaae1a2.tar.gz servo-81ecf7824cae9629be020332c836205fedaae1a2.zip |
Make unrooted_must_root a bit more aggressive.
Basically, instead of trying to check for specific kinds of statements,
just check the types of all local variables.
Also included are some commented-out proposals for some slightly more
aggressive lints which might be useful (but trigger a little too
frequently at the moment).
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index c7011c8e056..749885571eb 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -109,6 +109,7 @@ impl WebGLRenderingContext { }) } + #[allow(unrooted_must_root)] pub fn new(global: GlobalRef, canvas: &HTMLCanvasElement, size: Size2D<i32>, attrs: GLContextAttributes) -> Option<Root<WebGLRenderingContext>> { match WebGLRenderingContext::new_inherited(global, canvas, size, attrs) { |