summaryrefslogtreecommitdiffstats
path: root/pure/src/widget/container.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-17 19:08:54 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-17 19:08:54 +0700
commitda45b6c1627935bff5334d213096c4e78972af46 (patch)
tree86840f251dd51f41de2fe79083e9975b51ec1f4f /pure/src/widget/container.rs
parent2737b21d346c9034502c345dea735ca136b49cea (diff)
downloadiced-da45b6c1627935bff5334d213096c4e78972af46.tar.gz
iced-da45b6c1627935bff5334d213096c4e78972af46.tar.bz2
iced-da45b6c1627935bff5334d213096c4e78972af46.zip
Implement `pure::Component` in `iced_lazy`
Diffstat (limited to 'pure/src/widget/container.rs')
-rw-r--r--pure/src/widget/container.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pure/src/widget/container.rs b/pure/src/widget/container.rs
index 8ad6a064..c8f0b3a2 100644
--- a/pure/src/widget/container.rs
+++ b/pure/src/widget/container.rs
@@ -240,12 +240,12 @@ where
}
fn overlay<'b>(
- &'b mut self,
+ &'b self,
tree: &'b mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
) -> Option<overlay::Element<'b, Message, Renderer>> {
- self.content.as_widget_mut().overlay(
+ self.content.as_widget().overlay(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,