From ba52cbdba6fc5ef945a04dd8a294532e926f31d0 Mon Sep 17 00:00:00 2001 From: grovesNL Date: Wed, 25 Jan 2023 16:10:10 -0330 Subject: [PATCH] Buffer doesn't need to be mutable anymore --- examples/hello-world.rs | 2 +- src/text_render.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello-world.rs b/examples/hello-world.rs index 689630e..2bb0dc7 100644 --- a/examples/hello-world.rs +++ b/examples/hello-world.rs @@ -103,7 +103,7 @@ async fn run() { width: config.width, height: config.height, }, - &mut buffer, + &buffer, Color::rgb(255, 255, 255), &mut cache, ) diff --git a/src/text_render.rs b/src/text_render.rs index bfcc359..14f5055 100644 --- a/src/text_render.rs +++ b/src/text_render.rs @@ -60,7 +60,7 @@ impl TextRenderer { queue: &Queue, atlas: &mut TextAtlas, screen_resolution: Resolution, - buffer: &mut cosmic_text::Buffer<'a>, + buffer: &cosmic_text::Buffer<'a>, default_color: Color, cache: &mut SwashCache, ) -> Result<(), PrepareError> {