Skip to content

Commit

Permalink
Fix latest clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Dec 30, 2022
1 parent c5b66e0 commit ad2b141
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compute/grid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod util;
/// - Track (row/column) sizing
/// - Alignment & Final item placement
pub fn compute(tree: &mut impl LayoutTree, node: Node, available_space: Size<AvailableSpace>) -> Size<f32> {
let get_child_styles_iter = |node| tree.children(node).into_iter().map(|child_node: &Node| tree.style(*child_node));
let get_child_styles_iter = |node| tree.children(node).map(|child_node: &Node| tree.style(*child_node));
let style = tree.style(node).clone();
let child_styles_iter = get_child_styles_iter(node);

Expand All @@ -57,7 +57,6 @@ pub fn compute(tree: &mut impl LayoutTree, node: Node, available_space: Size<Ava
let grid_auto_flow = style.grid_auto_flow;
let in_flow_children_iter = || {
tree.children(node)
.into_iter()
.copied()
.enumerate()
.map(|(index, child_node)| (index, child_node, tree.style(child_node)))
Expand Down

0 comments on commit ad2b141

Please sign in to comment.