diff --git a/src/utils/rectangle.rs b/src/utils/rectangle.rs index 5fe6e9f..5cd8357 100644 --- a/src/utils/rectangle.rs +++ b/src/utils/rectangle.rs @@ -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,