rectangle: derive Default

This commit is contained in:
Ivan Molodetskikh 2020-01-22 07:22:22 +03:00
parent aa65f3608d
commit 52d86d3abf
No known key found for this signature in database
GPG Key ID: 02CE38DA47E9D691
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/// A rectangle defined by its top-left corner and dimensions
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, Default)]
pub struct Rectangle {
/// horizontal position of the top-left corner of the rectangle, in surface coordinates
pub x: i32,