summaryrefslogtreecommitdiffstats
path: root/native/src/widget/image.rs
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/widget/image.rs
parent267e242238fab0aba14fb4c2e27269ce3a3e3951 (diff)
downloadiced-f81827c151eba868ab17f35d21a654d48125d0bf.tar.gz
iced-f81827c151eba868ab17f35d21a654d48125d0bf.tar.bz2
iced-f81827c151eba868ab17f35d21a654d48125d0bf.zip
Remove counterintuitive constant functions
Diffstat (limited to '')
-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 5cfe074f..4c588c9d 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 const fn width(mut self, width: Length) -> Self {
+ pub 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 const fn height(mut self, height: Length) -> Self {
+ pub fn height(mut self, height: Length) -> Self {
self.height = height;
self
}