Skip to content

Commit

Permalink
Deploying to gh-pages from @ ab4e402 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
kl-botsu committed Nov 8, 2023
1 parent 185a272 commit 205aed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/src/gooey/tree.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@
<span class="kw">if </span>hovered == id {
<span class="kw">return </span><span class="bool-val">true</span>;
}
search = data.nodes[<span class="kw-2">&amp;</span>hovered].parent;
search = data.nodes.get(<span class="kw-2">&amp;</span>hovered).and_then(|node| node.parent);
}

<span class="bool-val">false
Expand Down Expand Up @@ -799,7 +799,7 @@
<span class="kw">let </span><span class="kw-2">mut </span>hierarchy = Vec::new();
<span class="kw">while let </span><span class="prelude-val">Some</span>(managed) = <span class="self">self</span>.widget(widget, tree) {
hierarchy.push(managed);
<span class="kw">let </span><span class="prelude-val">Some</span>(parent) = <span class="self">self</span>.nodes[<span class="kw-2">&amp;</span>widget].parent <span class="kw">else </span>{
<span class="kw">let </span><span class="prelude-val">Some</span>(parent) = <span class="self">self</span>.nodes.get(<span class="kw-2">&amp;</span>widget).and_then(|widget| widget.parent) <span class="kw">else </span>{
<span class="kw">break</span>;
};
widget = parent;
Expand Down

0 comments on commit 205aed1

Please sign in to comment.