core: Don't make Font/GlyphSource Clone, it's super wasteful if something did actually clone it

This commit is contained in:
Nathan Adams 2023-08-26 11:38:52 +02:00 committed by Adrian Wielgosik
parent 8d71ab3436
commit bcf47622f0
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ impl EvalParameters {
} }
} }
#[derive(Debug, Clone)] #[derive(Debug)]
pub enum GlyphSource { pub enum GlyphSource {
Memory { Memory {
/// The list of glyphs defined in the font. /// The list of glyphs defined in the font.
@ -132,7 +132,7 @@ impl GlyphSource {
#[collect(no_drop)] #[collect(no_drop)]
pub struct Font<'gc>(Gc<'gc, FontData>); pub struct Font<'gc>(Gc<'gc, FontData>);
#[derive(Debug, Clone, Collect)] #[derive(Debug, Collect)]
#[collect(require_static)] #[collect(require_static)]
struct FontData { struct FontData {
glyphs: GlyphSource, glyphs: GlyphSource,