diff --git a/src/html.rs b/src/html.rs index 6bd4c954..785348c8 100644 --- a/src/html.rs +++ b/src/html.rs @@ -99,12 +99,7 @@ fn contains_strong(handle: &Handle) -> bool { return true; } } - for child in handle.children.borrow().iter() { - if contains_strong(child) { - return true; - } - } - false + handle.children.borrow().iter().any(contains_strong) } /// Converts a `