From b30ab178858e7fd47509932c3b1651888d65ea17 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:09:10 +0900 Subject: [PATCH] Update rect.rs --- crates/emath/src/rect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/emath/src/rect.rs b/crates/emath/src/rect.rs index 6c0677ad55e..1400f60d194 100644 --- a/crates/emath/src/rect.rs +++ b/crates/emath/src/rect.rs @@ -19,7 +19,7 @@ use crate::{lerp, pos2, vec2, Div, Mul, Pos2, Rangef, Rot2, Vec2}; /// [`Rect::ZERO`] may seem reasonable, but when used as a bounding box, [`Rect::NOTHING`] /// is a better default - so be explicit instead! #[repr(C)] -#[derive(Clone, Copy, Eq, PartialEq)] +#[derive(Clone, Copy, Default, Eq, PartialEq)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))] pub struct Rect {