diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-31 16:31:21 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-31 16:33:33 +0200 |
| commit | 5f97e0a77348d4fb1c89a9adf671647f1fa86dc3 (patch) | |
| tree | 2800a61d06ac7cae8e57cb361804c530b1843bb8 /library/src/math | |
| parent | 00f11ae56d6d20b92a8c6ad6f2245c3ad3e94d86 (diff) | |
Make `Paint` not implement `Copy`
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/fragment.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/math/fragment.rs b/library/src/math/fragment.rs index 0d663d3f..a0951458 100644 --- a/library/src/math/fragment.rs +++ b/library/src/math/fragment.rs @@ -201,20 +201,20 @@ impl GlyphFragment { self.ascent + self.descent } - pub fn to_variant(&self) -> VariantFragment { + pub fn to_variant(self) -> VariantFragment { VariantFragment { c: self.c, id: Some(self.id), - frame: self.to_frame(), style: self.style, font_size: self.font_size, italics_correction: self.italics_correction, class: self.class, span: self.span, + frame: self.to_frame(), } } - pub fn to_frame(&self) -> Frame { + pub fn to_frame(self) -> Frame { let item = TextItem { font: self.font.clone(), size: self.font_size, |
