style: Fix RuleNode::has_children_for_testing().

This commit is contained in:
Emilio Cobos Álvarez 2019-06-04 01:02:50 -04:00
parent aad49357c3
commit c155639bc5

View file

@ -1019,7 +1019,7 @@ impl StrongRuleNode {
/// Returns whether this node has any child, only intended for testing
/// purposes, and called on a single-threaded fashion only.
pub unsafe fn has_children_for_testing(&self) -> bool {
self.get().children.read().is_empty()
!self.get().children.read().is_empty()
}
unsafe fn pop_from_free_list(&self) -> Option<WeakRuleNode> {