summaryrefslogtreecommitdiffstats
path: root/native/src/layout
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-06 03:30:48 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-06 03:30:48 +0100
commitf81827c151eba868ab17f35d21a654d48125d0bf (patch)
tree6b844fb33fb83dfd61dbb89512fff2b766e4bff5 /native/src/layout
parent267e242238fab0aba14fb4c2e27269ce3a3e3951 (diff)
downloadiced-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.rs4
-rw-r--r--native/src/layout/node.rs4
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
}