summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-28 03:06:35 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-28 03:06:35 +0200
commit20d79a43cce5a1bf0cb48a7668ac90d0ac82dfdc (patch)
treeb4c1174f7f93b2dc9a4f2e2d08fd42365531b934 /core
parent6c2e28d20e498526d1c6d624b4018e9392d0fb80 (diff)
downloadiced-20d79a43cce5a1bf0cb48a7668ac90d0ac82dfdc.tar.gz
iced-20d79a43cce5a1bf0cb48a7668ac90d0ac82dfdc.tar.bz2
iced-20d79a43cce5a1bf0cb48a7668ac90d0ac82dfdc.zip
Implement `Default` for `Point`
Diffstat (limited to 'core')
-rw-r--r--core/src/point.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/point.rs b/core/src/point.rs
index a31bf967..3714aa2f 100644
--- a/core/src/point.rs
+++ b/core/src/point.rs
@@ -1,7 +1,7 @@
use crate::Vector;
/// A 2D point.
-#[derive(Debug, Clone, Copy, PartialEq)]
+#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct Point {
/// The X coordinate.
pub x: f32,