mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Replace unsafe_blocks by unsafe_code.
This commit is contained in:
parent
4eb26065ac
commit
3479d3fa7f
53 changed files with 151 additions and 57 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
//! High-level interface to CSS selector matching.
|
||||
|
||||
#![allow(unsafe_blocks)]
|
||||
#![allow(unsafe_code)]
|
||||
|
||||
use context::SharedLayoutContext;
|
||||
use css::node_style::StyledNode;
|
||||
|
|
|
@ -23,7 +23,7 @@ pub trait StyledNode {
|
|||
|
||||
impl<'ln> StyledNode for ThreadSafeLayoutNode<'ln> {
|
||||
#[inline]
|
||||
#[allow(unsafe_blocks)]
|
||||
#[allow(unsafe_code)]
|
||||
fn style<'a>(&'a self) -> &'a Arc<ComputedValues> {
|
||||
unsafe {
|
||||
let layout_data_ref = self.borrow_layout_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue