Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza1311 committed Aug 27, 2022
1 parent f9f1a7c commit ec36c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/yew/src/dom_bundle/braw.rs
Expand Up @@ -19,7 +19,7 @@ impl BRaw {
let html = html.trim();
div.set_inner_html(html);
let children = div.children();
return if children.length() == 0 {
if children.length() == 0 {
None
} else if children.length() == 1 {
children.get_with_index(0)
Expand All @@ -28,8 +28,8 @@ impl BRaw {
"HTML with more than one root node was passed as raw node. It will be wrapped in \
a <div>"
);
Some(div.into())
};
Some(div)
}
}

fn detach_bundle(&self, parent: &Element) {
Expand Down

0 comments on commit ec36c2c

Please sign in to comment.