diff options
author | 2020-03-10 06:12:06 +0100 | |
---|---|---|
committer | 2020-03-10 06:12:06 +0100 | |
commit | e4fbca59b4b9478c9c5fa5eec9ebe31dc93412ad (patch) | |
tree | 237d2e5dd29c2d0f05f2b68f829425bb480b8ce7 /native/src/layout/node.rs | |
parent | 6151c528241d0a6ece88e6e664df1b50f8174ecb (diff) | |
parent | 5a91b52ef4066701d82a897b44a3f90412f210d2 (diff) | |
download | iced-e4fbca59b4b9478c9c5fa5eec9ebe31dc93412ad.tar.gz iced-e4fbca59b4b9478c9c5fa5eec9ebe31dc93412ad.tar.bz2 iced-e4fbca59b4b9478c9c5fa5eec9ebe31dc93412ad.zip |
Merge branch 'master' into feature/panes-widget
Diffstat (limited to 'native/src/layout/node.rs')
-rw-r--r-- | native/src/layout/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/layout/node.rs b/native/src/layout/node.rs index 11e93b72..a265c46a 100644 --- a/native/src/layout/node.rs +++ b/native/src/layout/node.rs @@ -12,7 +12,7 @@ impl Node { /// /// [`Node`]: struct.Node.html /// [`Size`]: ../struct.Size.html - pub fn new(size: Size) -> Self { + pub const fn new(size: Size) -> Self { Self::with_children(size, Vec::new()) } @@ -20,7 +20,7 @@ impl Node { /// /// [`Node`]: struct.Node.html /// [`Size`]: ../struct.Size.html - pub fn with_children(size: Size, children: Vec<Node>) -> Self { + pub const fn with_children(size: Size, children: Vec<Node>) -> Self { Node { bounds: Rectangle { x: 0.0, |