summaryrefslogtreecommitdiffstats
path: root/native/src/user_interface.rs
diff options
context:
space:
mode:
authorLibravatar daxpedda <daxpedda@gmail.com>2020-02-14 15:57:07 +0100
committerLibravatar daxpedda <daxpedda@gmail.com>2020-02-14 15:57:07 +0100
commitb72bd0b2b5c9c2a5c3f508a13ad9578169046a36 (patch)
treef75af65b619a364fd4b175e0e334f4d57df9766b /native/src/user_interface.rs
parent457d6f616af7359029b07d34d7e6cc1ab6cc6793 (diff)
downloadiced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.tar.gz
iced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.tar.bz2
iced-b72bd0b2b5c9c2a5c3f508a13ad9578169046a36.zip
Add `bound` to `Node` constructor.
Diffstat (limited to '')
-rw-r--r--native/src/user_interface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/user_interface.rs b/native/src/user_interface.rs
index 08914bed..b8fe7848 100644
--- a/native/src/user_interface.rs
+++ b/native/src/user_interface.rs
@@ -307,7 +307,7 @@ impl Cache {
pub fn new() -> Cache {
Cache {
hash: 0,
- layout: layout::Node::new(Size::new(0.0, 0.0)),
+ layout: layout::Node::new(Size::ZERO, Size::ZERO),
bounds: Size::ZERO,
cursor_position: Point::new(-1.0, -1.0),
}