Ask for a slice of segments instead of ownership in LineDash
This commit is contained in:
parent
76c03de587
commit
f56c8a7361
5 changed files with 26 additions and 26 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue