Fix compiler warnings

This commit is contained in:
Bryce Wilson 2021-08-14 21:35:15 -07:00
parent 8b3a49349d
commit f305c82494
No known key found for this signature in database
GPG key ID: F4AEE17C36AB5D15
5 changed files with 6 additions and 5 deletions

View file

@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#![allow(unsafe_code)]
use crate::dom::bindings::cell::DomRefCell;
use crate::dom::bindings::codegen::Bindings::CSSRuleListBinding::CSSRuleListMethods;
use crate::dom::bindings::error::{Error, ErrorResult, Fallible};
@ -21,7 +23,6 @@ use style::stylesheets::{
AllowImportRules, CssRules, CssRulesHelpers, KeyframesRule, RulesMutateError,
};
#[allow(unsafe_code)]
unsafe_no_jsmanaged_fields!(RulesSource);
unsafe_no_jsmanaged_fields!(CssRules);

View file

@ -636,7 +636,7 @@ macro_rules! handle_potential_webgl_error {
}
};
($context:expr, $call:expr) => {
handle_potential_webgl_error!($context, $call, ());
handle_potential_webgl_error!($context, $call, ())
};
}