Skip to content

Commit 59db153

Browse files
committed
add Clone bound to path element iterator
1 parent fe46a8e commit 59db153

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: moscato/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "moscato"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55
description = "Outline scaler for OpenType glyphs."
66
license = "MIT OR Apache-2.0"

Diff for: moscato/src/glyph.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub struct Path<'a> {
7272
}
7373

7474
impl<'a> Path<'a> {
75-
pub fn elements(&self) -> impl Iterator<Item = Element> + 'a {
75+
pub fn elements(&self) -> impl Iterator<Item = Element> + 'a + Clone {
7676
let mut i = 0;
7777
let copy = *self;
7878
copy.verbs.iter().map(move |verb| match verb {

0 commit comments

Comments
 (0)