diff --git a/components/layout/flow.rs b/components/layout/flow.rs index acea20ad4d4..b8a16933ae6 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -627,7 +627,7 @@ bitflags! { #[doc = "virtual call is too expensive."] const FLOATS_RIGHT = 0b0000_0000_0000_0100_0000_0000; #[doc = "Text alignment. \ - + \ NB: If you update this, update `TEXT_ALIGN_SHIFT` below."] const TEXT_ALIGN = 0b0000_0000_0111_1000_0000_0000; #[doc = "Whether this flow has a fragment with `counter-reset` or `counter-increment` \ diff --git a/components/script/dom/cssrulelist.rs b/components/script/dom/cssrulelist.rs index d4fde8ae308..479c46c222e 100644 --- a/components/script/dom/cssrulelist.rs +++ b/components/script/dom/cssrulelist.rs @@ -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); diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs index 5a32b36996b..324f5419389 100644 --- a/components/script/dom/macros.rs +++ b/components/script/dom/macros.rs @@ -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, ()) }; } diff --git a/components/style/stylesheets/viewport_rule.rs b/components/style/stylesheets/viewport_rule.rs index a62b7a5bbf1..a1090636bf0 100644 --- a/components/style/stylesheets/viewport_rule.rs +++ b/components/style/stylesheets/viewport_rule.rs @@ -753,7 +753,7 @@ impl MaybeNew for ViewportConstraints { }) } else { None - }; + } }; } diff --git a/components/style/values/generics/mod.rs b/components/style/values/generics/mod.rs index b1536bb7f33..39c898efed7 100644 --- a/components/style/values/generics/mod.rs +++ b/components/style/values/generics/mod.rs @@ -136,7 +136,7 @@ impl SpecifiedValueInfo for CounterStyle { // approach here. macro_rules! predefined { ($($name:expr,)+) => { - f(&["symbols", $($name,)+]); + f(&["symbols", $($name,)+]) } } include!("../../counter_style/predefined.rs");