mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Make Servo build.
StrongRuleNode is really Sync.
This commit is contained in:
parent
4c97f68f3e
commit
5ab81c4254
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue