diff options
author | 2020-03-06 03:30:48 +0100 | |
---|---|---|
committer | 2020-03-06 03:30:48 +0100 | |
commit | f81827c151eba868ab17f35d21a654d48125d0bf (patch) | |
tree | 6b844fb33fb83dfd61dbb89512fff2b766e4bff5 /native/src/layout | |
parent | 267e242238fab0aba14fb4c2e27269ce3a3e3951 (diff) | |
download | iced-f81827c151eba868ab17f35d21a654d48125d0bf.tar.gz iced-f81827c151eba868ab17f35d21a654d48125d0bf.tar.bz2 iced-f81827c151eba868ab17f35d21a654d48125d0bf.zip |
Remove counterintuitive constant functions
Diffstat (limited to 'native/src/layout')
-rw-r--r-- | native/src/layout/limits.rs | 4 | ||||
-rw-r--r-- | native/src/layout/node.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/native/src/layout/limits.rs b/native/src/layout/limits.rs index 5f456871..740417d4 100644 --- a/native/src/layout/limits.rs +++ b/native/src/layout/limits.rs @@ -32,7 +32,7 @@ impl Limits { /// /// [`Limits`]: struct.Limits.html /// [`Size`]: ../struct.Size.html - pub const fn min(&self) -> Size { + pub fn min(&self) -> Size { self.min } @@ -40,7 +40,7 @@ impl Limits { /// /// [`Limits`]: struct.Limits.html /// [`Size`]: ../struct.Size.html - pub const fn max(&self) -> Size { + pub fn max(&self) -> Size { self.max } diff --git a/native/src/layout/node.rs b/native/src/layout/node.rs index 3b63914e..acfd33bd 100644 --- a/native/src/layout/node.rs +++ b/native/src/layout/node.rs @@ -36,14 +36,14 @@ impl Node { /// /// [`Node`]: struct.Node.html /// [`Size`]: ../struct.Size.html - pub const fn size(&self) -> Size { + pub fn size(&self) -> Size { Size::new(self.bounds.width, self.bounds.height) } /// Returns the bounds of the [`Node`]. /// /// [`Node`]: struct.Node.html - pub const fn bounds(&self) -> Rectangle { + pub fn bounds(&self) -> Rectangle { self.bounds } |