From f81827c151eba868ab17f35d21a654d48125d0bf Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 6 Mar 2020 03:30:48 +0100 Subject: Remove counterintuitive constant functions --- native/src/layout/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native/src/layout/node.rs') 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 } -- cgit