Skip to content

Commit

Permalink
style: Make Servo build.
Browse files Browse the repository at this point in the history
StrongRuleNode is really Sync.
  • Loading branch information
emilio committed Sep 18, 2018
1 parent 4c97f68 commit 5ab81c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/style/rule_tree/mod.rs
Expand Up @@ -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>,
Expand All @@ -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);
Expand Down

0 comments on commit 5ab81c4

Please sign in to comment.