Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ource
  • Loading branch information
pop committed Mar 20, 2024
2 parents a452ea4 + 8a84813 commit f2eb995
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/rust/default-and-from.rst
Original file line number Diff line number Diff line change
Expand Up @@ -306,22 +306,22 @@ We need to cast it up to a Bevy ``NodeBundle`` with an implementation of ``From<
BottomLeft => Rect {
bottom: percent(0.0),
left: percent(0.0),
..default::default()
..Default::default()
},
BottomRight => Rect {
bottom: percent(0.0),
right: percent(0.0),
..default::default()
..Default::default()
},
TopLeft => Rect {
top: percent(0.0),
left: percent(0.0),
..default::default()
..Default::default()
},
TopRight => Rect {
top: percent(0.0),
right: percent(0.0),
..default::default()
..Default::default()
},
}
}
Expand Down

0 comments on commit f2eb995

Please sign in to comment.