Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnemecek committed May 16, 2020
1 parent 4f98102 commit 6f9d8f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/swift/StretchCore/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub unsafe extern "C" fn stretch_node_set_measure(
*node,
Some(stretch::node::MeasureFunc::Boxed(Box::new(move |constraint| {
let size = measure(swift_ptr, constraint.width.or_else(f32::NAN), constraint.height.or_else(f32::NAN));
Size { width: size.width, height: size.height }
size
}))),
)
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion src/algo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl Forest {

self.nodes[root].layout = result::Layout {
order: 0,
size: Size { width: result.size.width, height: result.size.height },
size: result.size,
location: Point::zero(),
};

Expand Down

0 comments on commit 6f9d8f7

Please sign in to comment.