mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix compiler warnings
This commit is contained in:
parent
8b3a49349d
commit
f305c82494
5 changed files with 6 additions and 5 deletions
|
@ -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` \
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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, ())
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -753,7 +753,7 @@ impl MaybeNew for ViewportConstraints {
|
|||
})
|
||||
} else {
|
||||
None
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue