summaryrefslogtreecommitdiffstats
path: root/native/src/layout
diff options
context:
space:
mode:
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
}