Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jan 29, 2023
1 parent 80fc7e3 commit b8507c2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/compute/grid/types/grid_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,10 @@ impl GridItem {
})
.sum::<Option<f32>>()
};
let known_dimensions = {
let mut size = Size::NONE;
size.set(axis.other(), item_other_axis_size);
size
};
known_dimensions

let mut size = Size::NONE;
size.set(axis.other(), item_other_axis_size);
size
}

/// Retrieve the known_dimensions from the cache or compute them using the passed parameters
Expand Down

0 comments on commit b8507c2

Please sign in to comment.