style: Make Servo build.

StrongRuleNode is really Sync.
This commit is contained in:
Emilio Cobos Álvarez 2018-09-18 11:46:23 +02:00
parent 4c97f68f3e
commit 5ab81c4254
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -938,8 +938,6 @@ impl MallocSizeOf for RuleNode {
}
}
// FIXME: use std::ptr::NonNull when Firefox requires Rust 1.25+
#[derive(Clone)]
struct WeakRuleNode {
p: ptr::NonNull<RuleNode>,
@ -952,6 +950,7 @@ pub struct StrongRuleNode {
}
unsafe impl Send for StrongRuleNode {}
unsafe impl Sync for StrongRuleNode {}
#[cfg(feature = "servo")]
malloc_size_of_is_0!(StrongRuleNode);