From 5c5612d9319cf9347e26891b15507efee30ad1b3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 3 Sep 2019 13:56:43 +0200 Subject: Apply latest changes to `Image` and `ProgressBar` --- src/widget/progress_bar.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widget/progress_bar.rs') 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, progress: f32); + fn draw(&mut self, bounds: Rectangle, progress: f32); } impl<'a, Message, Renderer> From for Element<'a, Message, Renderer> -- cgit