aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/layout_debug.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-19 07:40:22 +0530
committerMs2ger <ms2ger@gmail.com>2015-03-21 10:27:32 +0100
commit3479d3fa7fbbfbcdbc92a93896b4a347338fe103 (patch)
treed05bd5d1964dfad791132d2384950cc681597f6e /components/layout/layout_debug.rs
parent4eb26065acdc37d275e658d8581282cb39b90686 (diff)
downloadservo-3479d3fa7fbbfbcdbc92a93896b4a347338fe103.tar.gz
servo-3479d3fa7fbbfbcdbc92a93896b4a347338fe103.zip
Replace unsafe_blocks by unsafe_code.
Diffstat (limited to 'components/layout/layout_debug.rs')
-rw-r--r--components/layout/layout_debug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/layout_debug.rs b/components/layout/layout_debug.rs
index ed73a1c693e..4066d07546d 100644
--- a/components/layout/layout_debug.rs
+++ b/components/layout/layout_debug.rs
@@ -6,6 +6,7 @@
//! that can be viewed by an external tool to make layout debugging easier.
#![macro_use]
+#![allow(unsafe_code)] // thread_local!() defines an unsafe function on Android
use flow_ref::FlowRef;
use flow;
@@ -95,7 +96,6 @@ impl Drop for Scope {
/// Generate a unique ID. This is used for items such as Fragment
/// which are often reallocated but represent essentially the
/// same data.
-#[allow(unsafe_blocks)]
pub fn generate_unique_debug_id() -> u16 {
unsafe { DEBUG_ID_COUNTER.fetch_add(1, Ordering::SeqCst) as u16 }
}