summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/canvas/frame.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-03 17:18:05 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-03 17:18:05 +0700
commitf56c8a7361ceb215bce68e88bd6ce402e2694693 (patch)
treeec4d7ef8a63cf9ce0a77c28c9beeeaa7f3d64efc /graphics/src/widget/canvas/frame.rs
parent76c03de58729783513504f8115d7381f9a52fd23 (diff)
downloadiced-f56c8a7361ceb215bce68e88bd6ce402e2694693.tar.gz
iced-f56c8a7361ceb215bce68e88bd6ce402e2694693.tar.bz2
iced-f56c8a7361ceb215bce68e88bd6ce402e2694693.zip
Ask for a slice of segments instead of ownership in `LineDash`
Diffstat (limited to 'graphics/src/widget/canvas/frame.rs')
-rw-r--r--graphics/src/widget/canvas/frame.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/widget/canvas/frame.rs b/graphics/src/widget/canvas/frame.rs
index b98c3002..357dfa62 100644
--- a/graphics/src/widget/canvas/frame.rs
+++ b/graphics/src/widget/canvas/frame.rs
@@ -153,7 +153,7 @@ impl Frame {
/// Draws the stroke of the given [`Path`] on the [`Frame`] with the
/// provided style.
- pub fn stroke(&mut self, path: &Path, stroke: impl Into<Stroke>) {
+ pub fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>) {
let stroke = stroke.into();
let mut buffers = tessellation::BuffersBuilder::new(