summaryrefslogtreecommitdiffstats
path: root/src/widget
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget')
-rw-r--r--src/widget/image.rs2
-rw-r--r--src/widget/progress_bar.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/widget/image.rs b/src/widget/image.rs
index 500abe0d..e85b43b5 100644
--- a/src/widget/image.rs
+++ b/src/widget/image.rs
@@ -94,7 +94,7 @@ where
MouseCursor::OutOfBounds
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.style.hash(state);
}
}
diff --git a/src/widget/progress_bar.rs b/src/widget/progress_bar.rs
index 19e164f6..0964b2db 100644
--- a/src/widget/progress_bar.rs
+++ b/src/widget/progress_bar.rs
@@ -76,7 +76,7 @@ where
MouseCursor::OutOfBounds
}
- fn hash(&self, state: &mut Hasher) {
+ fn hash_layout(&self, state: &mut Hasher) {
self.style.hash(state);
}
}
@@ -96,7 +96,7 @@ pub trait Renderer {
/// * the progress of the [`ProgressBar`]
///
/// [`ProgressBar`]: struct.ProgressBar.html
- fn draw(&mut self, bounds: Rectangle<f32>, progress: f32);
+ fn draw(&mut self, bounds: Rectangle, progress: f32);
}
impl<'a, Message, Renderer> From<ProgressBar> for Element<'a, Message, Renderer>