Fix examples.

This commit is contained in:
daxpedda 2020-02-14 18:17:32 +01:00
parent ebe0d4f47e
commit 60b40fdc99
No known key found for this signature in database
GPG Key ID: 43D62A3EA388E46F
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ mod bezier {
.height(Length::Fill)
.width(Length::Fill)
.resolve(Size::ZERO);
layout::Node::new(size)
layout::Node::new(size, Size::ZERO)
}
fn draw(

View File

@ -43,7 +43,7 @@ mod rainbow {
) -> layout::Node {
let size = limits.width(Length::Fill).resolve(Size::ZERO);
layout::Node::new(Size::new(size.width, size.width))
layout::Node::new(Size::new(size.width, size.width), Size::ZERO)
}
fn hash_layout(&self, _state: &mut Hasher) {}