summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-03-10 01:59:02 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-03-10 01:59:02 +0100
commit21971e0037c2ddcb96fd48ea96332445de4137bb (patch)
tree7cc1dc9147923a45c25f70d187cdecf08ab33497 /graphics
parent35425001edcb54d861a42ec6d23f9e57b37745fd (diff)
downloadiced-21971e0037c2ddcb96fd48ea96332445de4137bb.tar.gz
iced-21971e0037c2ddcb96fd48ea96332445de4137bb.tar.bz2
iced-21971e0037c2ddcb96fd48ea96332445de4137bb.zip
Make `Clipboard` argument in `Widget` trait mutable
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/widget/canvas.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/src/widget/canvas.rs b/graphics/src/widget/canvas.rs
index 95ede50f..7897c8ec 100644
--- a/graphics/src/widget/canvas.rs
+++ b/graphics/src/widget/canvas.rs
@@ -154,9 +154,9 @@ where
event: iced_native::Event,
layout: Layout<'_>,
cursor_position: Point,
- messages: &mut Vec<Message>,
_renderer: &Renderer<B>,
- _clipboard: Option<&dyn Clipboard>,
+ _clipboard: &mut dyn Clipboard,
+ messages: &mut Vec<Message>,
) -> event::Status {
let bounds = layout.bounds();