From fd944f7765098a43f977ed00f4160aacc692d257 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 8 Jul 2015 10:52:34 +0200 Subject: [PATCH] Remove the manual Send/Sync implementations for Fragment. It was Send already, and ReplacedImageFragmentInfo::for_node was the only member that wasn't Sync. --- components/layout/fragment.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index d4e3c6148fe..b2326c51efa 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -112,11 +112,6 @@ pub struct Fragment { pub debug_id: u16, } -#[allow(unsafe_code)] -unsafe impl Send for Fragment {} -#[allow(unsafe_code)] -unsafe impl Sync for Fragment {} - impl Encodable for Fragment { fn encode(&self, e: &mut S) -> Result<(), S::Error> { e.emit_struct("fragment", 0, |e| {