summaryrefslogtreecommitdiffstats
path: root/native/src/widget/image.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/image.rs')
-rw-r--r--native/src/widget/image.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/image.rs b/native/src/widget/image.rs
index 4c588c9d..5cfe074f 100644
--- a/native/src/widget/image.rs
+++ b/native/src/widget/image.rs
@@ -37,7 +37,7 @@ impl Image {
/// Sets the width of the [`Image`] boundaries.
///
/// [`Image`]: struct.Image.html
- pub fn width(mut self, width: Length) -> Self {
+ pub const fn width(mut self, width: Length) -> Self {
self.width = width;
self
}
@@ -45,7 +45,7 @@ impl Image {
/// Sets the height of the [`Image`] boundaries.
///
/// [`Image`]: struct.Image.html
- pub fn height(mut self, height: Length) -> Self {
+ pub const fn height(mut self, height: Length) -> Self {
self.height = height;
self
}