mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +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)]
|
#[derive(Clone)]
|
||||||
struct WeakRuleNode {
|
struct WeakRuleNode {
|
||||||
p: ptr::NonNull<RuleNode>,
|
p: ptr::NonNull<RuleNode>,
|
||||||
|
@ -952,6 +950,7 @@ pub struct StrongRuleNode {
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for StrongRuleNode {}
|
unsafe impl Send for StrongRuleNode {}
|
||||||
|
unsafe impl Sync for StrongRuleNode {}
|
||||||
|
|
||||||
#[cfg(feature = "servo")]
|
#[cfg(feature = "servo")]
|
||||||
malloc_size_of_is_0!(StrongRuleNode);
|
malloc_size_of_is_0!(StrongRuleNode);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue