summaryrefslogtreecommitdiffstats
path: root/native/src/widget/button.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-11-29 21:50:27 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-29 21:50:27 +0100
commit23da5a32515a2eaf567d35d1b81e4b8400a27219 (patch)
tree17b503307d94ccac239f79f0fc9c3d532732be24 /native/src/widget/button.rs
parent67420cb1e4ac8f7819ee5775c52676c6b7b58718 (diff)
parentf1ada7a803998ac3fb2c1bedc6d6650264f3e603 (diff)
downloadiced-23da5a32515a2eaf567d35d1b81e4b8400a27219.tar.gz
iced-23da5a32515a2eaf567d35d1b81e4b8400a27219.tar.bz2
iced-23da5a32515a2eaf567d35d1b81e4b8400a27219.zip
Merge pull request #1563 from tarkah/fix/overlay-mutable
Allow &mut self in overlay
Diffstat (limited to 'native/src/widget/button.rs')
-rw-r--r--native/src/widget/button.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs
index fa5da24b..d68e01c7 100644
--- a/native/src/widget/button.rs
+++ b/native/src/widget/button.rs
@@ -260,12 +260,12 @@ where
}
fn overlay<'b>(
- &'b self,
+ &'b mut self,
tree: &'b mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
) -> Option<overlay::Element<'b, Message, Renderer>> {
- self.content.as_widget().overlay(
+ self.content.as_widget_mut().overlay(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,