summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2022-01-27 10:04:23 -0800
committerLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2022-01-27 10:04:23 -0800
commit76c03de58729783513504f8115d7381f9a52fd23 (patch)
treed97ee60dcdce6e3dfe53cf75dd12d50e0a8928ac /examples
parent39800b445f135211504b18bbc03ab9840198a64f (diff)
downloadiced-76c03de58729783513504f8115d7381f9a52fd23.tar.gz
iced-76c03de58729783513504f8115d7381f9a52fd23.tar.bz2
iced-76c03de58729783513504f8115d7381f9a52fd23.zip
Fix examples, no longer Copy
Diffstat (limited to 'examples')
-rw-r--r--examples/clock/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index 325ccc1a..fce57cc0 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -100,14 +100,14 @@ impl canvas::Program<Message> for Clock {
let wide_stroke = Stroke {
width: thin_stroke.width * 3.0,
- ..thin_stroke
+ ..thin_stroke.clone()
};
frame.translate(Vector::new(center.x, center.y));
frame.with_save(|frame| {
frame.rotate(hand_rotation(self.now.hour(), 12));
- frame.stroke(&short_hand, wide_stroke);
+ frame.stroke(&short_hand, wide_stroke.clone());
});
frame.with_save(|frame| {