style: Inline DomDescendants.

MozReview-Commit-ID: HeBxicDHlzt
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-10-30 19:28:11 +01:00
parent f32f09656b
commit c414e90b20
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -122,6 +122,7 @@ where
{
type Item = N;
#[inline]
fn next(&mut self) -> Option<N> {
let prev = match self.previous.take() {
None => return None,
@ -205,6 +206,7 @@ pub trait TNode : Sized + Copy + Clone + Debug + NodeInfo + PartialEq {
/// Returns the next children in pre-order, optionally scoped to a subtree
/// root.
#[inline]
fn next_in_preorder(&self, scoped_to: Option<Self>) -> Option<Self> {
if let Some(c) = self.first_child() {
return Some(c);