diff --git a/examples/cosmic_text/src/main.rs b/examples/cosmic_text/src/main.rs index 941488334..7f69efb42 100644 --- a/examples/cosmic_text/src/main.rs +++ b/examples/cosmic_text/src/main.rs @@ -41,7 +41,7 @@ struct BufferGlyphRun { struct BufferGlyphs { font_size: f32, - glyphs: Vec + glyphs: Vec, } struct SimpleVelloApp<'s> { @@ -334,7 +334,7 @@ fn create_glyphs(buffer: &Buffer) -> BufferGlyphs { }; let mut current_glyphs: Vec = vec![]; - + for layout_run in buffer.layout_runs() { let line_y = layout_run.line_y as f64; @@ -367,6 +367,5 @@ fn create_glyphs(buffer: &Buffer) -> BufferGlyphs { } } - buffer_glyphs }