From 52d86d3abff9eb0be03c680e01a5e80bbf1d8048 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 22 Jan 2020 07:22:22 +0300 Subject: [PATCH] rectangle: derive Default --- src/utils/rectangle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,